File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed
Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments