]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-111062: Build both default and free-threaded on macOS (gh-111449)
authorDima Tisnek <dimaqq@gmail.com>
Sun, 29 Oct 2023 07:20:11 +0000 (16:20 +0900)
committerGitHub <noreply@github.com>
Sun, 29 Oct 2023 07:20:11 +0000 (07:20 +0000)
.github/workflows/build.yml
.github/workflows/reusable-build-macos.yml

index 3898687816879391902e68ec91565361fee0ccee..3ef68b62e21a8b2089e1c02d956dd7db8e1acdae 100644 (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
index f4abeaf836dc2cab873991fbaf9c333353999c4b..3f1faf6e5f9170882385a621eb057c4e4033f9f7 100644 (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