hex/.github/workflows/check-macos.yml
Luke Parker f0c3cfef3f
fix: restore the macOS build and Linux Clippy broken by #141 (#143)
* fix(macos): restore the macOS build broken by #141 and check it in CI

The keyboard-layout test harness includes src/keyboard.rs, which now imports crate::keys, and personal_commands::workspace_configured is only called on Windows. Adds a Check macOS workflow so this can't regress silently.

* fix(linux): allow the hotkey worker entry points their eighth argument
2026-10-19 11:59:36 +10:00

51 lines
1.2 KiB
YAML

name: Check macOS
on:
pull_request:
paths:
- "Cargo.toml"
- "Cargo.lock"
- "build.rs"
- "src/**"
- "native/**"
- "resources/**"
- "assets/**"
- ".github/workflows/check-macos.yml"
push:
branches: [main]
paths:
- "Cargo.toml"
- "Cargo.lock"
- "build.rs"
- "src/**"
- "native/**"
- "resources/**"
- "assets/**"
- ".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
- name: Install the Metal toolchain
run: xcrun --sdk macosx metal --version || xcodebuild -downloadComponent MetalToolchain
- run: cargo fmt --all --check
- run: cargo clippy --locked --bin voice-control --tests -- -D warnings
- run: cargo test --locked --bin voice-control