Skip to content

Commit a492dd2

Browse files
committed
gh-111062: Build both default and free-threaded on macos
\# gh-111062: Build both default and free-threaded on macos
1 parent 3ac9851 commit a492dd2

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 0 deletions
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'
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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@ 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:
14+
name: ${{ inputs.free-threaded && 'free-threaded' || 'default' }}
1015
runs-on: macos-latest
1116
timeout-minutes: 60
1217
env:
@@ -30,6 +35,7 @@ jobs:
3035
./configure \
3136
--config-cache \
3237
--with-pydebug \
38+
${{ inputs.free-threaded && '--disable-gil' || '' }} \
3339
--prefix=/opt/python-dev \
3440
--with-openssl="$(brew --prefix [email protected])"
3541
- name: Build CPython

0 commit comments

Comments
 (0)