Skip to content

ci: run macOS lint on arm64 runner - #37254

Merged
bartlomieju merged 2 commits into
mainfrom
ci/lint-macos-arm64
Nov 30, 2026
Merged

bartlomieju merged 2 commits into
mainfrom
ci/lint-macos-arm64

Conversation

@bartlomieju

@bartlomieju bartlomieju commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

The macOS lint job runs on the Intel macos-15-intel runner, where a cold
clippy build of the workspace takes longer than the job's 30 minute timeout.
Its build cache is only saved by successful runs on main, so once a main run
times out (as on Nov 29) there is no cache left and every subsequent run
starts cold and times out too. Even warm runs on main took 21-23 minutes.

This moves the job to the arm64 macos-15 runner that the other arm64 macOS
jobs already use, which is considerably faster. Like those jobs it installs
the prebuilt ld64.lld, since .cargo/config.toml links aarch64 macOS with
-fuse-ld=lld. All target_os = "macos" code is still linted; only
x86_64-specific cfgs lose macOS coverage. The job is renamed to
lint debug macos-aarch64; ci status is the only required check, so that
does not affect merging.

.cargo/config.toml links aarch64-apple-darwin with -fuse-ld=lld, so the
lint job needs the same prebuilt ld64.lld the arm64 build jobs install.
@bartlomieju
bartlomieju merged commit 5b0eb7f into main Nov 30, 2026
137 checks passed
@bartlomieju
bartlomieju deleted the ci/lint-macos-arm64 branch November 30, 2026 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant