Skip to content

Commit 4a371f5

Browse files
committed
Build the native images on a list of runners, without macOS arm64
The platform names in the native job's matrix only named the jobs. The matrix is now the list of runners, and each job is named after its own: native (ubuntu-latest), native (macos-15-intel) and so on. Nothing requires those checks. macos-15 is commented out, for pushes too, instead of left out of pull requests only, which took an exclude on the event and a table of runners in runs-on. The release workflow still builds the macOS arm64 image. mise's ci:native task picks its job by the new key, and the README's act caveats use the new names.
1 parent 1b13814 commit 4a371f5

3 files changed

Lines changed: 14 additions & 16 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -159,14 +159,9 @@ jobs:
159159

160160
# One explicit job per target, so every binary we ship is traceable to a named run.
161161
native:
162-
name: native (${{ matrix.platform }})
162+
name: native (${{ matrix.runner }})
163163
needs: build
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] }}
164+
runs-on: ${{ matrix.runner }}
170165
timeout-minutes: 90
171166
# bash on Windows too, so that every step reads the same on every runner.
172167
defaults:
@@ -175,12 +170,15 @@ jobs:
175170
strategy:
176171
fail-fast: false
177172
matrix:
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' }}
173+
runner:
174+
- ubuntu-latest
175+
- ubuntu-24.04-arm
176+
# macOS arm64 is left out: GitHub's runners for it are scarce, and from 17 to 19 November 2026 it found
177+
# none for 13 of the job's 21 pull-request runs, each failing after 15 minutes of waiting. The release
178+
# still builds it.
179+
# - macos-15
180+
- macos-15-intel
181+
- windows-latest
184182

185183
steps:
186184
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,10 @@ mise run ci:native # actually run the linux-aarch64 native job
192192

193193
Two caveats:
194194

195-
- **act cannot containerise macOS**, so the `macos-aarch64` leg has to be checked by building the
195+
- **act cannot containerise macOS**, so the `macos-15-intel` leg has to be checked by building the
196196
native image on a Mac.
197197
- **On an Apple Silicon host** the `ubuntu-24.04` container runs as arm64, so the job labelled
198-
`linux-x86-64` produces an aarch64 binary locally. Fine for exercising the workflow, not a
198+
`ubuntu-latest` produces an aarch64 binary locally. Fine for exercising the workflow, not a
199199
substitute for real CI.
200200

201201
## License and attribution

‎mise.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ run = "act push --job build --env JAVA_HOME=/opt/hostedtoolcache/Java_Temurin-Ho
1818

1919
[tasks."ci:native"]
2020
description = "Run the linux-aarch64 native job locally in Docker"
21-
run = "act push --job native --matrix platform:linux-aarch64"
21+
run = "act push --job native --matrix runner:ubuntu-24.04-arm"
2222

2323
# ---- GitHub Actions secrets ----
2424
# Read from 1Password at apply time; nothing secret is stored in the repo. Requires gh

0 commit comments

Comments
 (0)