From: Dima Tisnek Date: Sun, 29 Oct 2023 07:20:11 +0000 (+0900) Subject: gh-111062: Build both default and free-threaded on macOS (gh-111449) X-Git-Tag: v3.13.0a2~290 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=14ab5e51c14e4f6298826823ea94cf51252da2d5;p=thirdparty%2FPython%2Fcpython.git gh-111062: Build both default and free-threaded on macOS (gh-111449) --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 389868781687..3ef68b62e21a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/.github/workflows/reusable-build-macos.yml b/.github/workflows/reusable-build-macos.yml index f4abeaf836dc..3f1faf6e5f91 100644 --- a/.github/workflows/reusable-build-macos.yml +++ b/.github/workflows/reusable-build-macos.yml @@ -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