From f0066e1b895ab4e0541c405b27127129dbd34d43 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Wed, 31 Jan 2024 07:36:41 -0800 Subject: [PATCH] Use publicly available Apple Silicon runners (#9726) ## Summary This PR switches over to the `macos-14` runners for our macOS wheel builds, which are GitHub's newly announced public M1 macOS runners (https://github.blog/changelog/2024-01-30-github-actions-introducing-the-new-m1-macos-runner-available-to-open-source/). Before: - x64_64: 10m 38s (https://github.com/astral-sh/ruff/actions/runs/7703465381/job/20993903864) - Universal: 19m 35s (https://github.com/astral-sh/ruff/actions/runs/7703465381/job/20993902533) After: - x64_64: 3m 30s (https://github.com/astral-sh/ruff/actions/runs/7719827902/job/21043743558?pr=9726) - Universal: 5m 59s (https://github.com/astral-sh/ruff/actions/runs/7719827902/job/21043743243?pr=9726) So it's like > 3x speedup for what is currently the bottleneck in our release pipeline. --- .github/workflows/release.yaml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index f195b92a9b66a5..d19ee647ed687b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -58,7 +58,7 @@ jobs: path: dist macos-x86_64: - runs-on: macos-latest + runs-on: macos-14 steps: - uses: actions/checkout@v4 with: @@ -74,11 +74,6 @@ jobs: with: target: x86_64 args: --release --locked --out dist - - name: "Test wheel - x86_64" - run: | - pip install dist/${{ env.PACKAGE_NAME }}-*.whl --force-reinstall - ruff --help - python -m ruff --help - name: "Upload wheels" uses: actions/upload-artifact@v3 with: @@ -98,7 +93,7 @@ jobs: *.sha256 macos-universal: - runs-on: macos-latest + runs-on: macos-14 steps: - uses: actions/checkout@v4 with: