|
56 | 56 | ln -s "$(pwd)" "games/SpringBoard Core.sdd" |
57 | 57 | ls -lah games/ |
58 | 58 |
|
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 | | -
|
83 | 59 | - name: Create Spring config to disable audio |
84 | 60 | run: | |
85 | 61 | # Create springsettings.cfg to disable audio (no sound card in CI) |
|
94 | 70 |
|
95 | 71 | - name: Create Spring script.txt |
96 | 72 | 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' |
132 | 76 | [GAME] |
133 | 77 | { |
134 | 78 | GameType=SpringBoard Core; |
@@ -158,7 +102,6 @@ jobs: |
158 | 102 | } |
159 | 103 | } |
160 | 104 | SCRIPTEND |
161 | | - fi |
162 | 105 |
|
163 | 106 | echo "=== Script contents ===" |
164 | 107 | cat script.txt |
|
0 commit comments