gh-111062: Build both default and free-threaded on macOS (gh-111449)

This commit is contained in:
Dima Tisnek 2023-10-29 16:20:11 +09:00 • committed by GitHub
parent 842e5fcdcd
commit 14ab5e51c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View file

@ -237,6 +237,15 @@ jobs:
with:
config_hash: ${{ needs.check_source.outputs.config_hash }}
build_macos_free_threaded:
name: 'macOS (free-threaded)'
needs: check_source
if: needs.check_source.outputs.run_tests == 'true' && contains(github.event.pull_request.labels.*.name, 'topic-free-threaded')
uses: ./.github/workflows/reusable-build-macos.yml
with:
config_hash: ${{ needs.check_source.outputs.config_hash }}
free-threaded: true
build_ubuntu:
name: 'Ubuntu'
runs-on: ubuntu-20.04

View file

@ -4,6 +4,10 @@ on:
config_hash:
required: true
type: string
free-threaded:
required: false
type: boolean
default: false
jobs:
build_macos:
@ -30,6 +34,7 @@ jobs:
./configure \
--config-cache \
--with-pydebug \
${{ inputs.free-threaded && '--disable-gil' || '' }} \
--prefix=/opt/python-dev \
--with-openssl="$(brew --prefix openssl@3.0)"
- name: Build CPython