Skip to content

Commit 1b13814

Browse files
committed
Leave macos-aarch64 out of the native builds of pull requests
GitHub's macOS arm64 runners are scarce. From 17 to 19 November 2026 it found none for 13 of the job's 21 pull-request runs: each waited 15 minutes and failed with "The job was not acquired by Runner of type hosted even after multiple attempts". Pull requests now build the other four platforms; pushes to a release line still build all five, and the release workflow does not change. The matrix lists the platforms and excludes macos-aarch64 when the event is a pull request. The runners moved from the matrix's include to a table in runs-on: an include entry that matches no combination adds one, so it would have put the excluded platform back. Only build is a required check, so no pull request waited for the job.
1 parent f9bdee0 commit 1b13814

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,12 @@ jobs:
161161
native:
162162
name: native (${{ matrix.platform }})
163163
needs: build
164-
runs-on: ${{ matrix.runner }}
164+
# Each platform's runner, looked up here rather than added by the matrix's `include`: an `include` entry
165+
# puts back a platform that `exclude` takes out.
166+
runs-on: >-
167+
${{ fromJSON('{"linux-x86-64": "ubuntu-latest", "linux-aarch64": "ubuntu-24.04-arm",
168+
"macos-aarch64": "macos-15", "macos-x86-64": "macos-15-intel",
169+
"windows-x86-64": "windows-latest"}')[matrix.platform] }}
165170
timeout-minutes: 90
166171
# bash on Windows too, so that every step reads the same on every runner.
167172
defaults:
@@ -170,17 +175,12 @@ jobs:
170175
strategy:
171176
fail-fast: false
172177
matrix:
173-
include:
174-
- platform: linux-x86-64
175-
runner: ubuntu-latest
176-
- platform: linux-aarch64
177-
runner: ubuntu-24.04-arm
178-
- platform: macos-aarch64
179-
runner: macos-15
180-
- platform: macos-x86-64
181-
runner: macos-15-intel
182-
- platform: windows-x86-64
183-
runner: windows-latest
178+
platform: [linux-x86-64, linux-aarch64, macos-aarch64, macos-x86-64, windows-x86-64]
179+
# Pull requests leave out macos-aarch64. GitHub's macOS arm64 runners are scarce: from 17 to 19 November
180+
# 2026 it found none for 13 of the job's 21 pull-request runs, and each failed after 15 minutes of waiting.
181+
# Pushes to a release line still build it, and so does the release.
182+
exclude:
183+
- platform: ${{ github.event_name == 'pull_request' && 'macos-aarch64' || 'none' }}
184184

185185
steps:
186186
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

0 commit comments

Comments
 (0)