From ab9f78e4f429dc1e104408fa4332202ceb4d594d Mon Sep 17 00:00:00 2001 From: darxnet Date: Thu, 19 Nov 2026 12:00:41 +0100 Subject: [PATCH] ci: test arm64 on Linux; macOS no longer blocks merging macOS arm64 runners are often short: jobs queue for minutes or are never picked up, and the required "CI passed" check then blocks every merge. The test matrix runs on ubuntu-latest (amd64) and ubuntu-24.04-arm (arm64); macOS keeps a stable-Go test job that "CI passed" does not wait for. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 35 ++++++++++++++++++++++++++++++++++- CONTRIBUTING.md | 3 ++- 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5fc0ace..d1fff11 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, macos-latest] # amd64, arm64 + os: [ubuntu-latest, ubuntu-24.04-arm] # amd64, arm64 go: [stable, oldstable] runs-on: ${{ matrix.os }} timeout-minutes: 15 @@ -51,6 +51,39 @@ jobs: - name: Benchmarks compile and run once run: go test -run=NONE -bench=. -benchtime=1x ./... + # Not required by "CI passed": macOS runners are often short (jobs queue for + # minutes or are never picked up), and arm64 is covered by ubuntu-24.04-arm. + test-macos: + name: Test, non-blocking (Go ${{ matrix.go }}, ${{ matrix.os }}) + strategy: + fail-fast: false + matrix: + os: [macos-latest] # arm64 + go: [stable] + runs-on: ${{ matrix.os }} + timeout-minutes: 15 + steps: + - uses: actions/checkout@v7 + + - uses: actions/setup-go@v7 + with: + go-version: ${{ matrix.go }} + cache: true + + - name: Verify go mod tidy + run: | + go mod tidy + git diff --exit-code -- go.mod go.sum + + - name: Vet + run: go vet ./... + + - name: Test + run: go test -race -failfast -count=1 ./... + + - name: Benchmarks compile and run once + run: go test -run=NONE -bench=. -benchtime=1x ./... + lint: name: Lint runs-on: ubuntu-latest diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 837ccc7..59cc876 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -28,7 +28,8 @@ changes meaning): users regenerate and review the diff. go test -race -count=1 ./... golangci-lint run ./... # .golangci.yml, `default: all` -CI runs the same checks on the stable and oldstable Go releases, on Linux (amd64) and macOS (arm64), +CI runs the same checks on the stable and oldstable Go releases, on Linux (amd64 and arm64) +and on macOS (arm64, stable Go only; it does not block merging), plus `govulncheck` and a coverage gate. ## Ground rules