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