@@ -242,33 +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- --enable-slower-safety \
256- --with-openssl=$OPENSSL_DIR
257-
258- build_ubuntu_free_threading :
259- name : ' Ubuntu (free-threading)'
245+ name : >-
246+ Ubuntu
247+ ${{ fromJSON(matrix.free-threading) && '(free-threading)' || '' }}
260248 needs : check_source
261249 if : needs.check_source.outputs.run_tests == 'true'
250+ strategy :
251+ matrix :
252+ free-threading :
253+ - false
254+ - true
262255 uses : ./.github/workflows/reusable-ubuntu.yml
263256 with :
264257 config_hash : ${{ needs.check_source.outputs.config_hash }}
265- options : |
266- ../cpython-ro-srcdir/configure \
267- --config-cache \
268- --with-pydebug \
269- --enable-slower-safety \
270- --with-openssl=$OPENSSL_DIR \
271- --disable-gil
258+ free-threading : ${{ matrix.free-threading }}
272259
273260 build_ubuntu_ssltests :
274261 name : ' Ubuntu SSL tests with OpenSSL'
@@ -581,7 +568,6 @@ jobs:
581568 - build_macos
582569 - build_macos_free_threading
583570 - build_ubuntu
584- - build_ubuntu_free_threading
585571 - build_ubuntu_ssltests
586572 - build_wasi
587573 - build_windows
@@ -616,7 +602,6 @@ jobs:
616602 build_macos,
617603 build_macos_free_threading,
618604 build_ubuntu,
619- build_ubuntu_free_threading,
620605 build_ubuntu_ssltests,
621606 build_wasi,
622607 build_windows,
0 commit comments