Skip to content

Commit 570d584

Browse files
committed
Remove map download, always use generated blank map
The smoke test was failing trying to download and use Comet Catcher Redux. SpringBoard editor normally starts with generated maps, not downloaded ones. Changes: - Removed "Download test map" step entirely - Removed ALSA null device configuration (Sound = 0 handles audio) - Simplified script.txt creation to always use sb_initial_blank_10x8 - Uses MapSeed and new_map_x/new_map_y modoptions for map generation This matches how SpringBoard editor normally starts.
1 parent df98d9f commit 570d584

File tree

1 file changed

+3
-60
lines changed

1 file changed

+3
-60
lines changed

.github/workflows/smoke-test.yml

Lines changed: 3 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -56,30 +56,6 @@ jobs:
5656
ln -s "$(pwd)" "games/SpringBoard Core.sdd"
5757
ls -lah games/
5858
59-
- name: Download test map
60-
run: |
61-
mkdir -p maps
62-
cd maps
63-
echo "Downloading Comet Catcher Redux map for testing..."
64-
wget -q "http://springfiles.springrts.com/spring/spring-maps/Comet%20Catcher%20Redux%201.8.sd7" -O "Comet_Catcher_Redux_1.8.sd7" || {
65-
echo "Map download failed, will try to use generated blank map"
66-
}
67-
cd ..
68-
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-
8359
- name: Create Spring config to disable audio
8460
run: |
8561
# Create springsettings.cfg to disable audio (no sound card in CI)
@@ -94,41 +70,9 @@ jobs:
9470
9571
- name: Create Spring script.txt
9672
run: |
97-
# Try to use downloaded map, fallback to blank map
98-
if [ -f maps/Comet_Catcher_Redux_1.8.sd7 ]; then
99-
MAP_NAME="Comet Catcher Redux 1.8"
100-
echo "Using downloaded map: $MAP_NAME"
101-
cat > script.txt << 'SCRIPTEND'
102-
[GAME]
103-
{
104-
GameType=SpringBoard Core;
105-
MapName=Comet Catcher Redux 1.8;
106-
IsHost=1;
107-
MyPlayerName=TestPlayer;
108-
[MODOPTIONS]
109-
{
110-
MapSeed=42;
111-
}
112-
[PLAYER0]
113-
{
114-
Name=TestPlayer;
115-
Team=0;
116-
IsFromDemo=0;
117-
Spectator=1;
118-
}
119-
[TEAM0]
120-
{
121-
TeamLeader=0;
122-
AllyTeam=0;
123-
}
124-
[ALLYTEAM0]
125-
{
126-
}
127-
}
128-
SCRIPTEND
129-
else
130-
echo "Using generated blank map"
131-
cat > script.txt << 'SCRIPTEND'
73+
# Use generated blank map (how SpringBoard editor normally starts)
74+
echo "Using generated blank map (10x8)"
75+
cat > script.txt << 'SCRIPTEND'
13276
[GAME]
13377
{
13478
GameType=SpringBoard Core;
@@ -158,7 +102,6 @@ jobs:
158102
}
159103
}
160104
SCRIPTEND
161-
fi
162105
163106
echo "=== Script contents ==="
164107
cat script.txt

0 commit comments

Comments
 (0)