-
Notifications
You must be signed in to change notification settings - Fork 6
68 lines (65 loc) · 2.73 KB
/
Copy pathlinux-present.yml
File metadata and controls
68 lines (65 loc) · 2.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Linux present
# Verifies Copperline's presentation path initializes and renders a frame on
# Linux using software Vulkan (Mesa lavapipe) under a headless X server. Guards
# the "Vulkan required on Linux" policy in src/video/window.rs: wgpu's GL
# fallback drops to an unusable surfaceless EGL platform, so a Vulkan adapter
# (hardware or lavapipe) must be reachable for the window surface to come up.
# GitHub runners have no GPU, so this exercises the lavapipe path -- the same
# one a Vulkan-less host uses after installing a software ICD. The local
# equivalent for an Apple Silicon dev host is packaging/test-linux-vulkan/.
on:
push:
branches: [main]
paths:
- "src/video/**"
- "vendor/**"
- "Cargo.lock"
- "Cargo.toml"
- ".github/workflows/linux-present.yml"
pull_request:
paths:
- "src/video/**"
- "vendor/**"
- "Cargo.lock"
- "Cargo.toml"
- ".github/workflows/linux-present.yml"
concurrency:
group: linux-present-${{ github.ref }}
cancel-in-progress: true
jobs:
present-smoke:
name: Vulkan present smoke test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
- name: Install dependencies
# Build: ALSA (cpal) + udev (gilrs). Runtime: software Vulkan (Mesa
# lavapipe) + a virtual X server, plus the X11/xkb client libraries
# winit dlopens at startup (libxkbcommon-x11 in particular, which the
# runner image does not ship). CI runners have no GPU, so lavapipe is
# the only ICD present. Keep this list in sync with
# packaging/test-linux-vulkan/Dockerfile.
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
libasound2-dev libudev-dev \
mesa-vulkan-drivers vulkan-tools \
xvfb xauth \
libxkbcommon0 libxkbcommon-x11-0 \
libx11-6 libx11-xcb1 libxcb1 \
libxcursor1 libxi6 libxrandr2 libxrender1 \
libwayland-client0
- name: Show Vulkan driver
run: vulkaninfo --summary | head -n 25
- name: Build
run: cargo build --release --locked --bin copperline
- name: Headless screenshot (exercises Vulkan present init)
# A hidden window + present surface are still created in screenshot
# mode, so a non-empty PNG proves the wgpu instance/adapter/surface
# came up on Vulkan. Boots the bundled AROS ROM, so no assets needed.
run: |
xvfb-run -a -s "-screen 0 1280x720x24" \
./target/release/copperline --noaudio --screenshot-after 3 /tmp/present.png
test -s /tmp/present.png
echo "present path OK ($(stat -c %s /tmp/present.png) bytes)"