hex/.github/workflows/check-macos.yml
Dax c782f5e39e
Onboarding gates stable releases: scene goldens and a clean first run (#864)
* Onboarding gates stable releases: scene goldens and a clean first run (scripts/check-onboarding.sh), wired into Release

* Onboarding check: hero drawn, mic scenes, no false passes, locale pinned, dispatchable Check macOS

* Onboarding goldens: dark found scenes after #865

* Onboarding walkthrough: say what the fixture window doesn't do
2026-11-01 13:44:03 -05:00

77 lines
2.6 KiB
YAML

name: Check macOS
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- "Cargo.toml"
- "Cargo.lock"
- "build.rs"
- "crates/**"
- "src/**"
- "native/**"
- "macos/HexMicrophoneDriver/Info.plist"
- "resources/**"
- "assets/**"
- "app/**"
- "scripts/validate-app.sh"
- "scripts/test-app-identity.sh"
- ".config/nextest.toml"
- ".github/workflows/check-macos.yml"
push:
branches: [dev]
paths:
- "Cargo.toml"
- "Cargo.lock"
- "build.rs"
- "crates/**"
- "src/**"
- "native/**"
- "macos/HexMicrophoneDriver/Info.plist"
- "resources/**"
- "assets/**"
- "app/**"
- "scripts/validate-app.sh"
- "scripts/test-app-identity.sh"
- ".config/nextest.toml"
- ".github/workflows/check-macos.yml"
# Release's onboarding gate needs a passing run on the candidate; a commit
# the paths above skip gets one with `gh workflow run check-macos.yml --ref production`.
workflow_dispatch:
permissions:
contents: read
# A new push to a pull request cancels its stale run. Every push and manual run
# keeps its own group, so each dev commit gets a result.
concurrency:
group: ${{ github.event_name == 'pull_request' && format('{0}-pr-{1}', github.workflow, github.event.pull_request.number) || format('{0}-run-{1}', github.workflow, github.run_id) }}
cancel-in-progress: true
jobs:
test:
if: ${{ !github.event.pull_request.draft }}
runs-on: macos-26
timeout-minutes: 60
env:
CARGO_PROFILE_DEV_DEBUG: "0"
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable
with:
toolchain: stable
components: rustfmt, clippy
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2
with:
cache-on-failure: true
- uses: taiki-e/install-action@86f7a0ffb25f40114606501a311ebcfaf882ea32 # v2
with:
tool: cargo-nextest
- name: Install the Metal toolchain
run: xcrun --sdk macosx metal --version || xcodebuild -downloadComponent MetalToolchain
- run: cargo fmt --all --check
- run: scripts/test-app-identity.sh
- run: cargo clippy --locked -p "$(cargo pkgid)" -p scrawl-capture --bin hex --lib --tests -- -D warnings
- run: cargo nextest run --locked --profile ci -p "$(cargo pkgid)" -p scrawl-capture --bin hex --lib
- name: No compromised eMudhra CA roots
run: cargo build --locked --bin hex && scripts/check-ca-roots.sh target/debug/hex