mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-23 01:58:23 +08:00
github team caps us at 5 concurrent macos jobs, so macos jobs queue behind each other. blacksmith has no concurrency cap and the same arm64 macos images. converted: compile macos, check-macos test, release build-macos/verify-macos, test-builds macos, release homebrew-stage. sign-macos stays on github-hosted macos-26, like sign-windows: it holds the release signing identity.
48 lines
1.7 KiB
YAML
48 lines
1.7 KiB
YAML
name: Check macOS
|
|
|
|
# The full macOS suite (tests, clippy, app identity, CA roots). It runs where
|
|
# it matters: Release's check and stable channels call it on the candidate
|
|
# commit and publish nothing until it passes, and anyone can run it by hand.
|
|
# Pull requests only compile (compile.yml).
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
sha:
|
|
description: The commit to test
|
|
required: true
|
|
type: string
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: blacksmith-6vcpu-macos-26
|
|
timeout-minutes: 60
|
|
env:
|
|
CARGO_PROFILE_DEV_DEBUG: "0"
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
with:
|
|
ref: ${{ inputs.sha || github.sha }}
|
|
persist-credentials: false
|
|
- 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
|