mirror of
https://github.com/PancakeTAS/lsfg-vk.git
synced 2025-10-30 07:01:10 +00:00
50 lines
1.4 KiB
YAML
50 lines
1.4 KiB
YAML
name: Build lsfg-vk on Debian
|
|
on:
|
|
push:
|
|
branches: ["develop"]
|
|
|
|
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 \
|
|
cmake ninja-build \
|
|
libvulkan-dev \
|
|
xorg-dev xutils-dev \
|
|
libwayland-dev libxkbcommon-dev
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: 'recursive'
|
|
- name: Configure with CMake and Ninja
|
|
run: |
|
|
CC=clang CXX=clang++ 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
|