]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
CI: Only test free-threading with faster macOS M1 (#116814)
authorHugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Thu, 14 Mar 2024 15:10:56 +0000 (17:10 +0200)
committerGitHub <noreply@github.com>
Thu, 14 Mar 2024 15:10:56 +0000 (15:10 +0000)
Only test free-threading with faster macOS M1

.github/workflows/build.yml
.github/workflows/reusable-macos.yml

index ae14046935b97bcc81433f297980e844f2c02d71..d43b83e830e1fb4d99a9ea7f6c314d353bcc432e 100644 (file)
@@ -206,6 +206,8 @@ jobs:
     uses: ./.github/workflows/reusable-macos.yml
     with:
       config_hash: ${{ needs.check_source.outputs.config_hash }}
+      # macos-14 is M1, macos-13 is Intel
+      os-matrix: '["macos-14", "macos-13"]'
 
   build_macos_free_threading:
     name: 'macOS (free-threading)'
@@ -215,6 +217,8 @@ jobs:
     with:
       config_hash: ${{ needs.check_source.outputs.config_hash }}
       free-threading: true
+      # macos-14 is M1
+      os-matrix: '["macos-14"]'
 
   build_ubuntu:
     name: 'Ubuntu'
index 65b73cd791c75c7cb3d8749964a1fee38ca87faf..dabeca8c81ece1c6ba9d275eb9c4758812c23b28 100644 (file)
@@ -8,6 +8,9 @@ on:
         required: false
         type: boolean
         default: false
+      os-matrix:
+        required: false
+        type: string
 
 jobs:
   build_macos:
@@ -22,10 +25,7 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        os: [
-          "macos-14",  # M1
-          "macos-13",  # Intel
-        ]
+        os: ${{fromJson(inputs.os-matrix)}}
     runs-on: ${{ matrix.os }}
     steps:
     - uses: actions/checkout@v4