ci: switch to sway

This commit is contained in:
drendog 2025-12-11 23:49:39 +01:00
parent f560bd04c4
commit 2c210d016c
Signed by: dwenya
GPG key ID: 8DD77074645332D0

View file

@ -26,7 +26,7 @@ jobs:
libegl1-mesa-dev \ libegl1-mesa-dev \
libgles2-mesa-dev \ libgles2-mesa-dev \
libfontconfig1-dev \ libfontconfig1-dev \
weston sway
- name: Install Rust toolchain - name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable uses: dtolnay/rust-toolchain@stable
@ -78,15 +78,17 @@ jobs:
run: | run: |
export XDG_RUNTIME_DIR=/tmp export XDG_RUNTIME_DIR=/tmp
export WAYLAND_DISPLAY=wayland-ci-test export WAYLAND_DISPLAY=wayland-ci-test
export WLR_BACKENDS=headless
export WLR_LIBINPUT_NO_DEVICES=1
weston --backend=headless-backend.so --no-config --socket=$WAYLAND_DISPLAY & sway --unsupported-gpu &
WESTON_PID=$! SWAY_PID=$!
until test -S "/tmp/$WAYLAND_DISPLAY"; do until test -S "/tmp/$WAYLAND_DISPLAY"; do
echo "Waiting for weston..." echo "Waiting for sway..."
sleep 0.5 sleep 0.5
done done
echo "Weston started successfully" echo "Sway started successfully"
timeout 5 cargo run -p simple-bar || echo "simple-bar timed out (expected)" timeout 5 cargo run -p simple-bar || echo "simple-bar timed out (expected)"
timeout 5 cargo run -p multi-surface || echo "multi-surface timed out (expected)" timeout 5 cargo run -p multi-surface || echo "multi-surface timed out (expected)"
@ -96,5 +98,5 @@ jobs:
timeout 5 cargo run -p event-loop-examples --bin custom-source || echo "custom-source timed out (expected)" timeout 5 cargo run -p event-loop-examples --bin custom-source || echo "custom-source timed out (expected)"
timeout 5 cargo run -p runtime-surface-config || echo "runtime-surface-config timed out (expected)" timeout 5 cargo run -p runtime-surface-config || echo "runtime-surface-config timed out (expected)"
kill $WESTON_PID || true kill $SWAY_PID || true
wait $WESTON_PID 2>/dev/null || true wait $SWAY_PID 2>/dev/null || true