From 0d19e15834e35293c76a2aa947abe70bce995cc1 Mon Sep 17 00:00:00 2001 From: PancakeTAS Date: Sun, 13 Jul 2025 18:21:59 +0200 Subject: [PATCH] workflow for debian fixes #64 --- .github/workflows/build-debian.yml | 46 ++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/build-debian.yml diff --git a/.github/workflows/build-debian.yml b/.github/workflows/build-debian.yml new file mode 100644 index 0000000..b5a5a47 --- /dev/null +++ b/.github/workflows/build-debian.yml @@ -0,0 +1,46 @@ +name: Build lsfg-vk on Debian +on: [push] + +jobs: + build-debian: + runs-on: ubuntu-latest + container: + image: debian:trixie + steps: + - name: Prepare cache for apt packages + uses: actions/cache@v4 + with: + path: /var/cache/apt/archives + key: debian-apt-cache + - name: Install build dependencies + run: | + export DEBIAN_FRONTEND=noninteractive + apt-get update + apt-get install -y \ + build-essential \ + clang clang-tools llvm \ + git tar \ + cmake ninja-build \ + spirv-headers libvulkan-dev + - name: Checkout repository + uses: actions/checkout@v4 + with: + submodules: true + - name: Configure with CMake and Ninja + run: | + cmake -B build -G Ninja \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=./build-release + - name: Build with Ninja + run: | + ninja -C build + - name: Install with CMake + run: | + cmake --install build + - name: Upload lsfg-vk artifact + uses: actions/upload-artifact@v4 + with: + name: lsfg-vk_debian + path: | + build-release/share/vulkan/implicit_layer.d/VkLayer_LS_frame_generation.json + build-release/lib/liblsfg-vk.so