Skip to content

CI Error when no files found #8

CI Error when no files found

CI Error when no files found #8

name: ZEngine Cmake Linux Workflow

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

View workflow run for this annotation

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

Invalid workflow file

(Line: 45, Col: 7): Unexpected value 'if-no-files-found'
on:
workflow_call:
inputs:
configuration:
type: string
default: 'Debug'
targetFramework:
type: string
default: 'net8.0'
jobs:
Linux-Build:
name: cmake-build-linux-${{ inputs.configuration }}
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Download the Microsoft repository GPG keys
run: wget -q https://packages.microsoft.com/config/ubuntu/24.04/packages-microsoft-prod.deb
- name: Register the Microsoft repository GPG keys
run: sudo dpkg -i packages-microsoft-prod.deb
- name: Install LLVM-20
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 20
- name: Update the list of packages after we added packages.microsoft.com
run: sudo apt-get update
- name: Install development library
run: sudo apt-get install libasound2-dev libgl1-mesa-dev libpulse-dev libdbus-1-dev libx11-dev libxcursor-dev libxext-dev libxi-dev libxinerama-dev libxrandr-dev libxss-dev libxt-dev libxxf86vm-dev cmake apt-transport-https software-properties-common gcc g++ powershell clang-format-20 libwayland-dev libxkbcommon-dev libassimp-dev libfmt-dev libstb-dev libglfw3-dev libspdlog-dev libyaml-cpp-dev nlohmann-json3-dev libcli11-dev libspirv-cross-c-shared-dev spirv-tools glslang-dev glslang-tools dotnet-runtime-8.0 libgtest-dev libvulkan-memory-allocator-dev
- name: CMake Build
run: .\Scripts\BuildEngine.ps1 -Configurations ${{inputs.configuration}}
shell: pwsh
- name: Publish Build Artifacts
uses: actions/upload-artifact@v4
if-no-files-found: error
with:
name: Build-linux-${{inputs.configuration}}
path: |
Result.Linux.x64.${inputs.configuration}}/bin/
Result.Linux.x64.${{inputs.configuration}}/ZEngine/tests/