|
5 | 5 | env: |
6 | 6 | # Only used for the cache key. Increment version to force clean build. |
7 | 7 | GODOT_BASE_BRANCH: master |
| 8 | + # The Godot API version used by jobs that don't target a specific one. |
| 9 | + DEFAULT_API_VERSION: "4.7" |
8 | 10 | # Use UTF-8 on Linux. |
9 | 11 | LANG: en_US.UTF-8 |
10 | 12 | LC_ALL: en_US.UTF-8 |
|
29 | 31 | artifact-name: godot-cpp-linux-glibc2.27-x86_64-release |
30 | 32 | artifact-path: bin/libgodot-cpp.linux.template_release.x86_64.a |
31 | 33 | run-tests: true |
32 | | - api-version: 4.7 |
33 | 34 | cache-name: linux-x86_64 |
34 | 35 |
|
35 | 36 | - name: 🐧 Linux (GCC) for Godot 4.6 |
@@ -149,23 +150,23 @@ jobs: |
149 | 150 |
|
150 | 151 | - name: Generate godot-cpp sources only |
151 | 152 | run: | |
152 | | - scons platform=${{ matrix.platform }} verbose=yes build_library=no ${{ matrix.flags }} ${{ matrix.api-version && format('api_version={0}', matrix.api-version) || '' }} |
153 | | - scons -c |
| 153 | + scons platform=${{ matrix.platform }} verbose=yes build_library=no ${{ matrix.flags }} api_version=${{ matrix.api-version || env.DEFAULT_API_VERSION }} |
| 154 | + scons -c platform=${{ matrix.platform }} ${{ matrix.flags }} api_version=${{ matrix.api-version || env.DEFAULT_API_VERSION }} |
154 | 155 |
|
155 | 156 | - name: Build godot-cpp (debug) |
156 | 157 | run: | |
157 | | - scons platform=${{ matrix.platform }} verbose=yes target=template_debug ${{ matrix.flags }} ${{ matrix.api-version && format('api_version={0}', matrix.api-version) || '' }} |
| 158 | + scons platform=${{ matrix.platform }} verbose=yes target=template_debug ${{ matrix.flags }} api_version=${{ matrix.api-version || env.DEFAULT_API_VERSION }} |
158 | 159 |
|
159 | 160 |
|
160 | 161 | - name: Build test without rebuilding godot-cpp (debug) |
161 | 162 | run: | |
162 | 163 | cd test |
163 | | - scons platform=${{ matrix.platform }} verbose=yes build_library=no target=template_debug ${{ matrix.flags }} ${{ matrix.api-version && format('api_version={0}', matrix.api-version) || '' }} |
| 164 | + scons platform=${{ matrix.platform }} verbose=yes build_library=no target=template_debug ${{ matrix.flags }} api_version=${{ matrix.api-version || env.DEFAULT_API_VERSION }} |
164 | 165 |
|
165 | 166 | - name: Build test and godot-cpp (release) |
166 | 167 | run: | |
167 | 168 | cd test |
168 | | - scons platform=${{ matrix.platform }} verbose=yes target=template_release ${{ matrix.flags }} ${{ matrix.api-version && format('api_version={0}', matrix.api-version) || '' }} |
| 169 | + scons platform=${{ matrix.platform }} verbose=yes target=template_release ${{ matrix.flags }} api_version=${{ matrix.api-version || env.DEFAULT_API_VERSION }} |
169 | 170 |
|
170 | 171 | - name: Save Godot build cache |
171 | 172 | uses: ./.github/actions/godot-cache-save |
|
0 commit comments