Skip to content

Commit 5b5b7cc

Browse files
committed
Fix audio crash: use dummy SDL audio driver
--nosound flag doesn't exist in Spring binary. Instead, use environment variables to force Spring to use dummy audio backends that don't require hardware: - SDL_AUDIODRIVER=dummy (SDL dummy audio backend) - AUDIODEV=null (fallback)
1 parent 395add3 commit 5b5b7cc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/smoke-test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,11 @@ jobs:
159159
160160
# Run Spring with Xvfb (virtual X11 display) so LuaUI loads
161161
# This actually tests RmlUi initialization!
162-
# Use --nosound to disable audio completely (no sound card in CI)
162+
# Disable audio by removing any audio backend devices
163+
export SDL_AUDIODRIVER=dummy
164+
export AUDIODEV=null
163165
timeout 10s xvfb-run -a -s "-screen 0 1024x768x24" \
164-
./spring --nosound --write-dir $(pwd)/test-data script.txt || EXIT_CODE=$?
166+
./spring --write-dir $(pwd)/test-data script.txt || EXIT_CODE=$?
165167
166168
# Wait a moment for Spring to finish writing logs
167169
sleep 2

0 commit comments

Comments
 (0)