Skip to content

CI Error when no files found #1

CI Error when no files found

CI Error when no files found #1

# CMake build of ZEngine for Windows

Check failure on line 1 in .github/workflows/job-cmakebuild-windows.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/job-cmakebuild-windows.yml

Invalid workflow file

(Line: 62, Col: 9): Unexpected value 'if-no-files-found'
#
name: Windows Build Workflow
permissions:
packages: write
env:
USERNAME: mathewbensoncode
VCPKG_EXE: ${{ github.workspace }}/vcpkg/vcpkg
FEED_URL: https://nuget.pkg.github.com/mathewbensoncode/index.json
VCPKG_BINARY_SOURCES: "clear;nuget,https://nuget.pkg.github.com/mathewbensoncode/index.json,readwrite"
VCPKG_ROOT: ${{ github.workspace }}/vcpkg
CMAKE_TOOLCHAIN_FILE: ${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake
on:
workflow_call:
inputs:
targetFramework:
type: string
required: true
configuration:
type: string
default: 'Debug'
jobs:
cmake-build:
name: cmake-build-windows-${{ inputs.configuration }}
runs-on: windows-2022
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install vcpkg
shell: pwsh
run: git clone --depth=1 https://github.com/Microsoft/vcpkg ${{github.workspace}}/vcpkg
- name: Bootstrap vcpkg
shell: pwsh
run: ${{ github.workspace }}/vcpkg/bootstrap-vcpkg.bat
- name: Add NuGet sources
shell: pwsh
run: |
.$(${{ env.VCPKG_EXE }} fetch nuget) `
sources add `
-Source "${{ env.FEED_URL }}" `
-StorePasswordInClearText `
-Name GitHubPackages `
-UserName "${{ env.USERNAME }}" `
-Password "${{ secrets.GITHUB_TOKEN }}"
.$(${{ env.VCPKG_EXE }} fetch nuget) `
setapikey "${{ secrets.GITHUB_TOKEN }}" `
-Source "${{ env.FEED_URL }}"
- name: CMake Build
run: .\Scripts\BuildEngine.ps1 -Configurations ${{inputs.configuration}} -RunClangFormat 0
shell: pwsh
- name: Publish Build Artifacts
uses: actions/upload-artifact@v4
if-no-files-found: error
with:
name: Build-Windows-x64-${{inputs.configuration}}
path: |
Result.Windows.x64.MultiConfig/bin
Result.Windows.x64.MultiConfig/ZEngine/tests/${{inputs.configuration}}/