@@ -169,24 +169,21 @@ jobs:
169
169
170
170
native :
171
171
needs : determine-version
172
- name : " Native: ${{ matrix.os }}/${{ matrix.spm_configuration }}/${{ matrix.build_system }}/ ${{ matrix.cmake_generator }}"
172
+ name : " Native: ${{ matrix.os }}/${{ matrix.spm_configuration }}/${{ matrix.build_system }}${{ matrix.build_system == 'cmake' && format(':{0}', matrix. cmake_generator) || '' }}"
173
173
strategy :
174
174
fail-fast : false
175
175
matrix :
176
176
os : [macos-14, ubuntu-latest, windows-latest]
177
177
spm_configuration : [debug, release]
178
- cmake_generator : [Ninja, Xcode]
179
178
build_system : [cmake, spm]
180
179
181
- exclude :
182
- - os : ubuntu-latest
183
- cmake_generator : Xcode
184
- - os : windows-latest
180
+ include :
181
+ - cmake_generator : Ninja
182
+
183
+ - build_system : cmake
184
+ os : macos-14
185
185
cmake_generator : Xcode
186
- - build_system : spm
187
- cmake_generator : Ninja
188
186
189
- include :
190
187
- HYLO_LLVM_BUILD_RELEASE : 20250603-162600
191
188
- HYLO_LLVM_BUILD_TYPE : MinSizeRel
192
189
- HYLO_LLVM_DOWNLOAD_URL : https://github.com/hylo-lang/llvm-build/releases/download
@@ -204,9 +201,6 @@ jobs:
204
201
triple_suffix : unknown-windows-msvc17
205
202
windows_only : ' '
206
203
207
- - os : windows-latest
208
- use_spm : false
209
-
210
204
- os : macos-14
211
205
triple_suffix : apple-darwin24.1.0
212
206
triple_cpu : arm64
@@ -220,9 +214,6 @@ jobs:
220
214
- spm_configuration : release
221
215
cmake_build_type : Release
222
216
223
- - cmake_generator : Xcode
224
- use_spm : false
225
-
226
217
runs-on : ${{ matrix.os }}
227
218
env :
228
219
llvm_url_prefix : ${{ matrix.HYLO_LLVM_DOWNLOAD_URL }}/${{ matrix.HYLO_LLVM_BUILD_RELEASE }}
@@ -297,7 +288,7 @@ jobs:
297
288
if : ${{ matrix.build_system == 'cmake' }}
298
289
run : ctest --output-on-failure --parallel --test-dir hylo/.cmake-build ${{ matrix.cmake_generator == 'Xcode' && format('-C {0}', matrix.cmake_build_type) || '' }}
299
290
300
- - if : ${{ matrix.build_system == 'spm' && matrix.use_spm }}
291
+ - if : ${{ matrix.build_system == 'spm' }}
301
292
name : Create LLVM pkgconfig file and make it findable
302
293
run : >-
303
294
set -ex -o pipefail
@@ -310,7 +301,7 @@ jobs:
310
301
echo 'PKG_CONFIG_PATH=${{ github.workspace }}/pkg-config' >> "$GITHUB_ENV"
311
302
shell : bash
312
303
313
- - if : ${{ matrix.build_system == 'spm' && matrix.use_spm }}
304
+ - if : ${{ matrix.build_system == 'spm' }}
314
305
# Workaround for https://github.com/actions/cache/issues/1541
315
306
316
307
name : SPM cache setup
@@ -336,15 +327,15 @@ jobs:
336
327
}
337
328
working-directory : hylo
338
329
339
- - if : ${{ matrix.build_system == 'spm' && matrix.use_spm }}
330
+ - if : ${{ matrix.build_system == 'spm' }}
340
331
name : Build
341
332
run : |
342
333
swift build -c ${{ matrix.spm_configuration }} ${{ env.spm-build-options }} --build-tests
343
334
${{ matrix.windows_only }} if (-not $?) { swift build ${{ env.spm-build-options }} --target BuildToolDependencies }
344
335
345
336
working-directory : hylo
346
337
347
- - if : ${{ matrix.build_system == 'spm' && matrix.use_spm }}
338
+ - if : ${{ matrix.build_system == 'spm' }}
348
339
name : Test
349
340
run : |
350
341
swift test --skip-build -c ${{ matrix.spm_configuration }} ${{ env.spm-build-options }} ${{ env.spm-test-options }}
0 commit comments