From 033eac90bb08f6b5a4db6b8983a09701c8d9f96a Mon Sep 17 00:00:00 2001 From: Kevin Trogant Date: Sat, 3 Aug 2024 14:34:48 +0200 Subject: [PATCH] Add CI job to build linux version (with vulkan) --- .gitea/workflows/ci_meson.yaml | 36 +++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci_meson.yaml b/.gitea/workflows/ci_meson.yaml index a26d195..8a0ac6d 100644 --- a/.gitea/workflows/ci_meson.yaml +++ b/.gitea/workflows/ci_meson.yaml @@ -16,7 +16,7 @@ on: - "**.hpp" jobs: - build: + cross_compile: name: Cross Compile with ming64 runs-on: ${{ matrix.os }} strategy: @@ -48,3 +48,37 @@ jobs: with: name: ${{ matrix.os }}_Meson_Testlog path: build/meson-logs/testlog.txt + compile_linux: + name: Compile for linux + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ ubuntu-latest ] + meson_version: [ "1.4.0" ] + steps: + - name: Checkout Code + uses: https://gitea.com/ScMi1/checkout@v1 + - name: Install APT Dependencies + run: | + wget -qO- https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo tee /etc/apt/trusted.gpg.d/lunarg.asc + wget -qO /etc/apt/sources.list.d/lunarg-vulkan-jammy.list http://packages.lunarg.com/vulkan/lunarg-vulkan-jammy.list + apt update -y + apt install -y python3-pip cmake clang build-essential libwayland-dev libxkbcommon-dev xorg-dev vulkan-sdk + - name: Install PIP Dependencies + run: python -m pip install meson==${{ matrix.meson_version }} ninja + - name: Configure Project + run: | + chmod +x ./scripts/download_dxc.sh + ./scripts/download_dxc.sh + meson setup -Dbuild_dx11=false -Dbuild_vk=true -Dstatic_renderer=vk -Denable_dx11_shader_compiler=false -Db_sanitize=none build + cd build && meson devenv && cd .. + - name: Compile + run: meson compile -C build + - name: Run Tests + run: meson test -C build/ -v + - name: Upload Test Log + uses: actions/upload-artifact@v4 + if: failure() + with: + name: ${{ matrix.os }}_Meson_Testlog + path: build/meson-logs/testlog.txt \ No newline at end of file