Skip to content

Commit

Permalink
pythongh-111062: Build both default and free-threaded on macos
Browse files Browse the repository at this point in the history
\# pythongh-111062: Build both default and free-threaded on macos
  • Loading branch information
dimaqq committed Oct 29, 2023
1 parent 3ac9851 commit a492dd2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,15 @@ jobs:
with:
config_hash: ${{ needs.check_source.outputs.config_hash }}

build_macos_free_threaded:
name: 'macOS'
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
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/reusable-build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@ on:
config_hash:
required: true
type: string
free-threaded:
required: false
type: boolean
default: false

jobs:
build_macos:
name: ${{ inputs.free-threaded && 'free-threaded' || 'default' }}
runs-on: macos-latest
timeout-minutes: 60
env:
Expand All @@ -30,6 +35,7 @@ jobs:
./configure \
--config-cache \
--with-pydebug \
${{ inputs.free-threaded && '--disable-gil' || '' }} \
--prefix=/opt/python-dev \
--with-openssl="$(brew --prefix [email protected])"
- name: Build CPython
Expand Down

0 comments on commit a492dd2

Please sign in to comment.