]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
CI: Test on macOS M1 (#114766)
authorHugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Thu, 1 Feb 2024 01:35:48 +0000 (03:35 +0200)
committerGitHub <noreply@github.com>
Thu, 1 Feb 2024 01:35:48 +0000 (17:35 -0800)
Test on macOS M1

.github/workflows/reusable-macos.yml

index c24b6e963ddfd672c244ed5279f9e32bb5af41b4..28e9dc52fd50eed30fe62fc3713d47548562e7d1 100644 (file)
@@ -12,20 +12,27 @@ on:
 jobs:
   build_macos:
     name: 'build and test'
-    runs-on: macos-latest
     timeout-minutes: 60
     env:
       HOMEBREW_NO_ANALYTICS: 1
       HOMEBREW_NO_AUTO_UPDATE: 1
       HOMEBREW_NO_INSTALL_CLEANUP: 1
       PYTHONSTRICTEXTENSIONBUILD: 1
+    strategy:
+      fail-fast: false
+      matrix:
+        os: [
+          "macos-14",  # M1
+          "macos-13",  # Intel
+        ]
+    runs-on: ${{ matrix.os }}
     steps:
     - uses: actions/checkout@v4
     - name: Restore config.cache
       uses: actions/cache@v3
       with:
         path: config.cache
-        key: ${{ github.job }}-${{ runner.os }}-${{ inputs.config_hash }}
+        key: ${{ github.job }}-${{ matrix.os }}-${{ inputs.config_hash }}
     - name: Install Homebrew dependencies
       run: brew install pkg-config openssl@3.0 xz gdbm tcl-tk
     - name: Configure CPython