Skip to content

ci: run macOS matrix legs on tag releases only - #122

Merged
willwade merged 2 commits into
mainfrom
ci/macos-on-tags-only
Nov 18, 2026
Merged

willwade merged 2 commits into
mainfrom
ci/macos-on-tags-only

Conversation

@willwade

Copy link
Copy Markdown

Why

The hosted macos-15 pool kept reclaiming jobs mid-run — random cancellations at 5–28 minutes across three rerun rounds on #121 (each leg passed on at least one round, so it's pool weather, not code; macos-latest did the same on Nov 9, see #117). Per-PR macOS gating is currently a lottery that blocks merges.

What

  • build-test macOS legs get if: matrix.os != 'macos-15' || startsWith(github.ref, 'refs/tags/v')
  • ci.yml additionally triggers on v* tags, so every release tag runs the full macOS test matrix (release.yml separately builds the macOS binaries from the same tag)
  • PR and branch-push CI gates on Linux + Windows + Sanitize + clang-tidy + clang-format
  • The branch ruleset's required checks drop the four macOS contexts to match (applied via the rulesets API together with this PR — before this change landed, any PR was blocked whenever the mac pool had a bad day)

Sequencing

This PR unblocks #121 (its one remaining cancelled leg is no longer a required check). Merge order: this → #121 → version bump → tag v0.2.30, at which point the full macOS suite runs again on the tag.

The hosted macos-15 pool kept reclaiming jobs mid-run (random
cancellations at 5-28 minutes across three rerun rounds on PR #121 -
each leg passed on at least one round, so pool weather, not code; the
macos-latest pool did the same on Nov 9, see #117).

PR and branch-push CI now gates on Linux + Windows (+ Sanitize,
clang-tidy, clang-format); the full macOS matrix runs on v* tags so
every release is still fully tested on macOS, and release.yml keeps
building the macOS binaries from the same tag. The branch ruleset's
required checks drop the four macOS contexts to match (done via the
rulesets API alongside this change).

Signed-off-by: will wade <willwade@gmail.com>
The previous attempt put a matrix-context if: on the shared build-test
job; that is not valid in jobs.<id>.if, and GitHub dropped the whole
workflow (run concluded 'workflow file issue' with no jobs). Split the
four macOS combos into a build-test-macos job gated on v* tags using
only the github context, keep build-test to Linux + Windows, and give
the mac job a 45-minute timeout for the slower hosted pool.

Signed-off-by: will wade <willwade@gmail.com>
@willwade
willwade merged commit 4d17cbf into main Nov 18, 2026
11 checks passed
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