Skip to content

Commit f4f8914

Browse files
dimaqqFullteaR
authored andcommitted
pythongh-111062: Build both default and free-threaded on macOS (pythongh-111449)
1 parent 55e150c commit f4f8914

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/workflows/build.yml

+9
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,15 @@ jobs:
237237
with:
238238
config_hash: ${{ needs.check_source.outputs.config_hash }}
239239

240+
build_macos_free_threaded:
241+
name: 'macOS (free-threaded)'
242+
needs: check_source
243+
if: needs.check_source.outputs.run_tests == 'true' && contains(github.event.pull_request.labels.*.name, 'topic-free-threaded')
244+
uses: ./.github/workflows/reusable-build-macos.yml
245+
with:
246+
config_hash: ${{ needs.check_source.outputs.config_hash }}
247+
free-threaded: true
248+
240249
build_ubuntu:
241250
name: 'Ubuntu'
242251
runs-on: ubuntu-20.04

.github/workflows/reusable-build-macos.yml

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
config_hash:
55
required: true
66
type: string
7+
free-threaded:
8+
required: false
9+
type: boolean
10+
default: false
711

812
jobs:
913
build_macos:
@@ -30,6 +34,7 @@ jobs:
3034
./configure \
3135
--config-cache \
3236
--with-pydebug \
37+
${{ inputs.free-threaded && '--disable-gil' || '' }} \
3338
--prefix=/opt/python-dev \
3439
--with-openssl="$(brew --prefix openssl@3.0)"
3540
- name: Build CPython

0 commit comments

Comments
 (0)