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 @@ -253,17 +253,20 @@ jobs:
253
253
os-matrix : ' ["ghcr.io/cirruslabs/macos-runner:sonoma", "macos-14", "macos-13"]'
254
254
255
255
build_ubuntu :
256
- name : ' Ubuntu'
256
+ name : >-
257
+ Ubuntu
258
+ ${{ fromJSON(matrix.free-threading) && '(free-threading)' || '' }}
257
259
needs : check_source
258
260
if : needs.check_source.outputs.run_tests == 'true'
261
+ strategy :
262
+ matrix :
263
+ free-threading :
264
+ - false
265
+ - true
259
266
uses : ./.github/workflows/reusable-ubuntu.yml
260
267
with :
261
268
config_hash : ${{ needs.check_source.outputs.config_hash }}
262
- options : |
263
- ../cpython-ro-srcdir/configure \
264
- --config-cache \
265
- --with-pydebug \
266
- --with-openssl=$OPENSSL_DIR
269
+ free-threading : ${{ matrix.free-threading }}
267
270
268
271
build_ubuntu_ssltests :
269
272
name : ' Ubuntu SSL tests with OpenSSL'
Original file line number Diff line number Diff line change 4
4
config_hash :
5
5
required : true
6
6
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
10
12
11
13
jobs :
12
14
build_ubuntu_reusable :
61
63
key : ${{ github.job }}-${{ runner.os }}-${{ env.IMAGE_VERSION }}-${{ inputs.config_hash }}
62
64
- name : Configure CPython out-of-tree
63
65
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' || '' }}
65
72
- name : Build CPython out-of-tree
66
73
working-directory : ${{ env.CPYTHON_BUILDDIR }}
67
74
run : make -j4
You can’t perform that action at this time.
0 commit comments