Skip to content

Commit 37e02b4

Browse files
committed
[update] pipelines to support headless builds on ubuntu.
1 parent 7f4307b commit 37e02b4

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.github/workflows/compile_lambda_rs.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,16 @@ jobs:
4747
sudo apt-get install -y \
4848
pkg-config libx11-dev libxcb1-dev libxcb-render0-dev \
4949
libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev \
50-
libwayland-dev libudev-dev libvulkan-dev
50+
libwayland-dev libudev-dev \
51+
libvulkan-dev libvulkan1 mesa-vulkan-drivers vulkan-tools
52+
53+
- name: Configure Vulkan (Ubuntu)
54+
if: ${{ matrix.os == 'ubuntu-latest' }}
55+
run: |
56+
echo "WGPU_BACKEND=vulkan" >> "$GITHUB_ENV"
57+
# Prefer Mesa's software Vulkan (lavapipe) to ensure headless availability
58+
echo "VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/lvp_icd.x86_64.json" >> "$GITHUB_ENV"
59+
vulkaninfo --summary || true
5160
5261
# Windows runners already include the required toolchain for DX12 builds.
5362

.github/workflows/release.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,21 @@ jobs:
4141
- name: Rust cache
4242
uses: Swatinem/rust-cache@v2
4343

44+
- name: Install Linux deps for winit/wgpu
45+
run: |
46+
sudo apt-get update
47+
sudo apt-get install -y \
48+
pkg-config libx11-dev libxcb1-dev libxcb-render0-dev \
49+
libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev \
50+
libwayland-dev libudev-dev \
51+
libvulkan-dev libvulkan1 mesa-vulkan-drivers vulkan-tools
52+
53+
- name: Configure Vulkan for headless CI
54+
run: |
55+
echo "WGPU_BACKEND=vulkan" >> "$GITHUB_ENV"
56+
echo "VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/lvp_icd.x86_64.json" >> "$GITHUB_ENV"
57+
vulkaninfo --summary || true
58+
4459
- name: Format check
4560
run: cargo fmt --all -- --check
4661

0 commit comments

Comments
 (0)