Skip to content

Commit d093252

Browse files
committed
Add ALSA null device configuration to prevent audio crash
Create ~/.config/alsa/asoundrc with a null PCM device. This allows OpenAL/ALSA to initialize without crashing even when there's no real audio hardware in CI. Previous attempts: - snd_disable config: ignored by Spring - --nosound flag: doesn't exist - SDL_AUDIODRIVER=dummy: didn't prevent ALSA init This should finally work!
1 parent 5b5b7cc commit d093252

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 ALSA null device configuration
70+
run: |
71+
# Create ALSA config to use null device (no sound card in CI)
72+
mkdir -p ~/.config/alsa
73+
cat > ~/.config/alsa/asoundrc << 'EOF'
74+
pcm.!default {
75+
type plug
76+
slave.pcm "null"
77+
}
78+
pcm.null {
79+
type null
80+
}
81+
EOF
82+
6983
- name: Create Spring config to disable audio
7084
run: |
7185
# Create springsettings.cfg to disable audio (no sound card in CI)

0 commit comments

Comments
 (0)