File tree Expand file tree Collapse file tree 2 files changed +20
-10
lines changed Expand file tree Collapse file tree 2 files changed +20
-10
lines changed Original file line number Diff line number Diff line change @@ -267,17 +267,20 @@ jobs:
267267 os-matrix : ' ["ghcr.io/cirruslabs/macos-runner:sonoma", "macos-14", "macos-13"]'
268268
269269 build_ubuntu :
270- name : ' Ubuntu'
270+ name : >-
271+ Ubuntu
272+ ${{ fromJSON(matrix.free-threading) && '(free-threading)' || '' }}
271273 needs : check_source
272274 if : needs.check_source.outputs.run_tests == 'true'
275+ strategy :
276+ matrix :
277+ free-threading :
278+ - false
279+ # - true
273280 uses : ./.github/workflows/reusable-ubuntu.yml
274281 with :
275282 config_hash : ${{ needs.check_source.outputs.config_hash }}
276- options : |
277- ../cpython-ro-srcdir/configure \
278- --config-cache \
279- --with-pydebug \
280- --with-openssl=$OPENSSL_DIR
283+ free-threading : ${{ matrix.free-threading }}
281284
282285 build_ubuntu_ssltests :
283286 name : ' Ubuntu SSL tests with OpenSSL'
Original file line number Diff line number Diff line change 44 config_hash :
55 required : true
66 type : string
7- options :
8- required : true
9- type : string
7+ free-threading :
8+ description : Whether to use free-threaded mode
9+ required : false
10+ type : boolean
11+ default : false
1012
1113jobs :
1214 build_ubuntu_reusable :
6163 key : ${{ github.job }}-${{ runner.os }}-${{ env.IMAGE_VERSION }}-${{ inputs.config_hash }}
6264 - name : Configure CPython out-of-tree
6365 working-directory : ${{ env.CPYTHON_BUILDDIR }}
64- run : ${{ inputs.options }}
66+ run : >-
67+ ../cpython-ro-srcdir/configure
68+ --config-cache
69+ --with-pydebug
70+ --with-openssl=$OPENSSL_DIR
71+ ${{ fromJSON(inputs.free-threading) && '--disable-gil' || '' }}
6572 - name : Build CPython out-of-tree
6673 working-directory : ${{ env.CPYTHON_BUILDDIR }}
6774 run : make -j4
You can’t perform that action at this time.
0 commit comments