Skip to content

add fetch_content based config #7

add fetch_content based config

add fetch_content based config #7

name: ZEngine Cmake Linux Workflow
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
ǰ

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

View workflow run for this annotation

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

Invalid workflow file

You have an error in your yaml syntax on line 36
- 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
- name: CMake Build
run: .\Scripts\BuildEngine.ps1 -Configurations ${{inputs.configuration}}
shell: pwsh
- name: Publish Build Artifacts
uses: actions/upload-artifact@v4
with:
name: Build-linux-${{inputs.configuration}}
path: |
Result.Linux.x64.${inputs.configuration}}/Panzerfaust/${{inputs.configuration}}/net8.0/publish
Result.Linux.x64.${{inputs.configuration}}/_deps/vulkan-loader-build/loader/
Result.Linux.x64.${{inputs.configuration}}/ZEngine/tests/
Result.Linux.x64.${{inputs.configuration}}/Panzerfaust/${{inputs.configuration}}/${{inputs.targetFramework}}/**/Microsoft.CodeAnalysis.CSharp.resources.dll
!Result.Linux.x64.${{inputs.configuration}}/Panzerfaust/${{inputs.configuration}}/${{inputs.targetFramework}}/**/Microsoft.CodeAnalysis.CSharp.Scripting.resources.dll
!Result.Linux.x64.${{inputs.configuration}}/Panzerfaust/${{inputs.configuration}}/${{inputs.targetFramework}}/**/Microsoft.CodeAnalysis.resources.dll
!Result.Linux.x64.${{inputs.configuration}}/Panzerfaust/${{inputs.configuration}}/${{inputs.targetFramework}}/**/Microsoft.CodeAnalysis.Scripting.resources.dll