Skip to content

ci: fractional platform validation and exact-SHA release preflight #384

ci: fractional platform validation and exact-SHA release preflight

ci: fractional platform validation and exact-SHA release preflight #384

name: macOS ARM Build
on:
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened, labeled, unlabeled]
workflow_dispatch:
inputs:
candidate_sha:
description: Exact 40-character commit SHA to validate
required: true
type: string
# One live run per workflow per ref: a new push to a branch or PR cancels the
# superseded run instead of queuing behind it in the shared account-wide runner
# pool. Runs on main get a unique group, so they are never cancelled or coalesced.
concurrency:
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_id || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
call:
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'ci-full'))
uses: ./.github/workflows/_build.yml
with:
source-sha: ${{ github.event_name == 'workflow_dispatch' && inputs.candidate_sha || github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
runs-on: macos-15
# Explicit target so CI wheels/binaries are identical to the release
# builds in auto-release.yml (same artifact names, plat-name tags, and
# soldr cache key), letting auto-release reuse them (#170).
rust-target: aarch64-apple-darwin
wheel-smoke: true