mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
scripts/check runs fmt, clippy and nextest (falls back to cargo test). .config/nextest.toml kills a test after 30 s (60 s for GPU scenes) and reports it by name; CI uses the ci profile. Fixes tests that hung or depended on the host: HID modifier queries and Carbon layout lookups off the main thread, the leaked i18n language, the stale 2.3.0 driver version, CoreAudio in the startup-failure test, unbounded accept/recv waits, a 20 ms sleep race in local_api, and keyboard_layout under --list.
67 lines
1.8 KiB
YAML
67 lines
1.8 KiB
YAML
name: Check macOS
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- "Cargo.toml"
|
|
- "Cargo.lock"
|
|
- "build.rs"
|
|
- "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: [main, rune-ui]
|
|
paths:
|
|
- "Cargo.toml"
|
|
- "Cargo.lock"
|
|
- "build.rs"
|
|
- "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 --bin voice-control --tests -- -D warnings
|
|
- run: cargo nextest run --locked --profile ci --bin voice-control
|
|
- name: No compromised eMudhra CA roots
|
|
run: cargo build --locked --bin voice-control && scripts/check-ca-roots.sh target/debug/voice-control
|