@@ -242,31 +242,20 @@ jobs:
242242 os-matrix : ' ["ghcr.io/cirruslabs/macos-runner:sonoma", "macos-14"]'
243243
244244 build_ubuntu :
245- name : ' Ubuntu'
246- needs : check_source
247- if : needs.check_source.outputs.run_tests == 'true'
248- uses : ./.github/workflows/reusable-ubuntu.yml
249- with :
250- config_hash : ${{ needs.check_source.outputs.config_hash }}
251- options : |
252- ../cpython-ro-srcdir/configure \
253- --config-cache \
254- --with-pydebug \
255- --with-openssl=$OPENSSL_DIR
256-
257- build_ubuntu_free_threading :
258- name : ' Ubuntu (free-threading)'
245+ name : >-
246+ Ubuntu
247+ ${{ fromJSON(matrix.free-threading) && '(free-threading)' || '' }}
259248 needs : check_source
260249 if : needs.check_source.outputs.run_tests == 'true'
250+ strategy :
251+ matrix :
252+ free-threading :
253+ - false
254+ - true
261255 uses : ./.github/workflows/reusable-ubuntu.yml
262256 with :
263257 config_hash : ${{ needs.check_source.outputs.config_hash }}
264- options : |
265- ../cpython-ro-srcdir/configure \
266- --config-cache \
267- --with-pydebug \
268- --with-openssl=$OPENSSL_DIR \
269- --disable-gil
258+ free-threading : ${{ matrix.free-threading }}
270259
271260 build_ubuntu_ssltests :
272261 name : ' Ubuntu SSL tests with OpenSSL'
@@ -578,7 +567,6 @@ jobs:
578567 - build_macos
579568 - build_macos_free_threading
580569 - build_ubuntu
581- - build_ubuntu_free_threading
582570 - build_ubuntu_ssltests
583571 - build_wasi
584572 - build_windows
@@ -613,7 +601,6 @@ jobs:
613601 build_macos,
614602 build_macos_free_threading,
615603 build_ubuntu,
616- build_ubuntu_free_threading,
617604 build_ubuntu_ssltests,
618605 build_wasi,
619606 build_windows,
0 commit comments