@@ -199,53 +199,37 @@ jobs:
199
199
free-threading : ${{ matrix.free-threading }}
200
200
201
201
build_macos :
202
- name : ' macOS'
202
+ name : >-
203
+ macOS
204
+ ${{ fromJSON(matrix.free-threading) && '(free-threading)' || '' }}
203
205
needs : check_source
204
206
if : needs.check_source.outputs.run_tests == 'true'
205
207
strategy :
206
208
fail-fast : false
207
209
matrix :
208
210
# Cirrus and macos-14 are M1, macos-13 is default GHA Intel.
211
+ # macOS 13 only runs tests against the GIL-enabled CPython.
209
212
# Cirrus used for upstream, macos-14 for forks.
210
213
os :
211
214
- ghcr.io/cirruslabs/macos-runner:sonoma
212
215
- macos-14
213
216
- macos-13
214
217
is-fork : # only used for the exclusion trick
215
218
- ${{ github.repository_owner != 'python' }}
219
+ free-threading :
220
+ - false
221
+ - true
216
222
exclude :
217
223
- os : ghcr.io/cirruslabs/macos-runner:sonoma
218
224
is-fork : true
219
225
- os : macos-14
220
226
is-fork : false
227
+ - os : macos-13
228
+ free-threading : true
221
229
uses : ./.github/workflows/reusable-macos.yml
222
230
with :
223
231
config_hash : ${{ needs.check_source.outputs.config_hash }}
224
- os : ${{ matrix.os }}
225
-
226
- build_macos_free_threading :
227
- name : ' macOS (free-threading)'
228
- needs : check_source
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
245
- uses : ./.github/workflows/reusable-macos.yml
246
- with :
247
- config_hash : ${{ needs.check_source.outputs.config_hash }}
248
- free-threading : true
232
+ free-threading : ${{ matrix.free-threading }}
249
233
os : ${{ matrix.os }}
250
234
251
235
build_ubuntu :
@@ -583,7 +567,6 @@ jobs:
583
567
- check-docs
584
568
- check_generated_files
585
569
- build_macos
586
- - build_macos_free_threading
587
570
- build_ubuntu
588
571
- build_ubuntu_free_threading
589
572
- build_ubuntu_ssltests
@@ -618,7 +601,6 @@ jobs:
618
601
&& '
619
602
check_generated_files,
620
603
build_macos,
621
- build_macos_free_threading,
622
604
build_ubuntu,
623
605
build_ubuntu_free_threading,
624
606
build_ubuntu_ssltests,
0 commit comments