name: Check macOS on: pull_request: 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" permissions: contents: read concurrency: group: macos-${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: test: runs-on: macos-26 timeout-minutes: 60 env: CARGO_PROFILE_DEV_DEBUG: "0" steps: - uses: actions/checkout@v7 - uses: dtolnay/rust-toolchain@stable with: components: rustfmt, clippy - uses: Swatinem/rust-cache@v2 with: cache-on-failure: true - uses: taiki-e/install-action@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 voice-control -p scrawl-capture --bin voice-control --lib --tests --features capture -- -D warnings - run: cargo nextest run --locked --profile ci -p voice-control -p scrawl-capture --bin voice-control --lib --features capture - name: No compromised eMudhra CA roots run: cargo build --locked --bin voice-control && scripts/check-ca-roots.sh target/debug/voice-control