@@ -202,24 +202,51 @@ jobs:
202
202
name : ' macOS'
203
203
needs : check_source
204
204
if : needs.check_source.outputs.run_tests == 'true'
205
+ strategy :
206
+ fail-fast : false
207
+ matrix :
208
+ # Cirrus and macos-14 are M1, macos-13 is default GHA Intel.
209
+ # Cirrus used for upstream, macos-14 for forks.
210
+ os :
211
+ - ghcr.io/cirruslabs/macos-runner:sonoma
212
+ - macos-14
213
+ - macos-13
214
+ is-fork : # only used for the exclusion trick
215
+ - ${{ github.repository_owner != 'python' }}
216
+ exclude :
217
+ - os : ghcr.io/cirruslabs/macos-runner:sonoma
218
+ is-fork : true
219
+ - os : macos-14
220
+ is-fork : false
205
221
uses : ./.github/workflows/reusable-macos.yml
206
222
with :
207
223
config_hash : ${{ needs.check_source.outputs.config_hash }}
208
- # Cirrus and macos-14 are M1, macos-13 is default GHA Intel.
209
- # Cirrus used for upstream, macos-14 for forks.
210
- os-matrix : ' ["ghcr.io/cirruslabs/macos-runner:sonoma", "macos-14", "macos-13"]'
224
+ os : ${{ matrix.os }}
211
225
212
226
build_macos_free_threading :
213
227
name : ' macOS (free-threading)'
214
228
needs : check_source
215
229
if : needs.check_source.outputs.run_tests == 'true'
230
+ strategy :
231
+ fail-fast : false
232
+ matrix :
233
+ # Cirrus and macos-14 are M1.
234
+ # Cirrus used for upstream, macos-14 for forks.
235
+ os :
236
+ - ghcr.io/cirruslabs/macos-runner:sonoma
237
+ - macos-14
238
+ is-fork : # only used for the exclusion trick
239
+ - ${{ github.repository_owner != 'python' }}
240
+ exclude :
241
+ - os : ghcr.io/cirruslabs/macos-runner:sonoma
242
+ is-fork : true
243
+ - os : macos-14
244
+ is-fork : false
216
245
uses : ./.github/workflows/reusable-macos.yml
217
246
with :
218
247
config_hash : ${{ needs.check_source.outputs.config_hash }}
219
248
free-threading : true
220
- # Cirrus and macos-14 are M1.
221
- # Cirrus used for upstream, macos-14 for forks.
222
- os-matrix : ' ["ghcr.io/cirruslabs/macos-runner:sonoma", "macos-14"]'
249
+ os : ${{ matrix.os }}
223
250
224
251
build_ubuntu :
225
252
name : ' Ubuntu'
0 commit comments