]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] Use Cirrus M1 macOS runners for CI (GH-119979) (GH-119987)
authorŁukasz Langa <lukasz@langa.pl>
Mon, 3 Jun 2024 16:15:54 +0000 (12:15 -0400)
committerGitHub <noreply@github.com>
Mon, 3 Jun 2024 16:15:54 +0000 (18:15 +0200)
(cherry picked from commit 6acb32fac3511c1d5500cac66f1d6397dcdab835)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Ee Durbin <ee@python.org>
.github/workflows/build.yml
.github/workflows/reusable-macos.yml
Lib/asyncio/__main__.py

index cad8d4646d5587ce3f17b792bdeb0eccf948963a..18e3de3d8ebd6feb640e9fa1c7bbe00e8371d4ac 100644 (file)
@@ -228,6 +228,8 @@ jobs:
     uses: ./.github/workflows/reusable-macos.yml
     with:
       config_hash: ${{ needs.check_source.outputs.config_hash }}
+      # Cirrus is M1, macos-13 is default GHA Intel
+      os-matrix: '["ghcr.io/cirruslabs/macos-runner:sonoma", "macos-13"]'
 
   build_ubuntu:
     name: 'Ubuntu'
index 6df27b172a97295af98ce263af595735f8aee179..fe16ad6d4b6e408efc97a267a5dda30871e93e9d 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
index 18bb87a5bc4ffd89fb24ef193ee88af64ee5dcbc..c39a31d7b3df5ba39c4214390248c06cf4c66bb8 100644 (file)
@@ -16,7 +16,6 @@ class AsyncIOInteractiveConsole(code.InteractiveConsole):
     def __init__(self, locals, loop):
         super().__init__(locals)
         self.compile.compiler.flags |= ast.PyCF_ALLOW_TOP_LEVEL_AWAIT
-
         self.loop = loop
 
     def runcode(self, code):