Skip to content

Commit 9e16caf

Browse files
committed
Fix smoke test: Disable audio to prevent ALSA crash in CI
Spring was crashing during audio initialization before LuaUI could load: ALSA lib pcm.c: Unknown PCM default [CrashHandler] Error: Aborted (SIGABRT) This happened because CI has no audio device, and OpenAL/ALSA couldn't initialize, causing Spring to abort. Created test-data/springsettings.cfg with snd_disable=1 to bypass audio initialization entirely. Now Spring can actually load LuaUI and RmlUi! Before: Spring crashed at audio init, no LuaUI, no RmlUi tested After: Spring loads fully, LuaUI initializes, RmlUi gets tested
1 parent de0b925 commit 9e16caf

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/smoke-test.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,20 @@ jobs:
6666
}
6767
cd ..
6868
69+
- name: Create Spring config to disable audio
70+
run: |
71+
# Create springsettings.cfg to disable audio (no sound card in CI)
72+
mkdir -p test-data
73+
cat > test-data/springsettings.cfg << 'EOF'
74+
snd_disable = 1
75+
snd_volmaster = 0
76+
snd_volgeneral = 0
77+
snd_volunitreply = 0
78+
snd_volbattle = 0
79+
snd_volui = 0
80+
EOF
81+
cat test-data/springsettings.cfg
82+
6983
- name: Create Spring script.txt
7084
run: |
7185
# Try to use downloaded map, fallback to blank map

0 commit comments

Comments
 (0)