mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
* Rename voice-control to hex everywhere, without migrations The Cargo package and binary are now hex, every OS keeps its data in a hex folder, and VOICE_CONTROL_* variables are HEX_*. Hex is a fresh app: the macOS voice-control rename, its symlink, and the Windows and Linux beta settings imports are gone. The Windows installer gets a new AppId so it never takes over an old voice-control install's entry. * Format * Drop the Windows paste-last default only the beta import used
73 lines
2.3 KiB
YAML
73 lines
2.3 KiB
YAML
name: Check macOS
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened, ready_for_review]
|
|
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
|
|
|
|
# A new push to a pull request cancels its stale run. Every push and manual run
|
|
# keeps its own group, so each dev commit gets a result.
|
|
concurrency:
|
|
group: ${{ github.event_name == 'pull_request' && format('{0}-pr-{1}', github.workflow, github.event.pull_request.number) || format('{0}-run-{1}', github.workflow, github.run_id) }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
test:
|
|
if: ${{ !github.event.pull_request.draft }}
|
|
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 "$(cargo pkgid)" -p scrawl-capture --bin hex --lib --tests --features capture -- -D warnings
|
|
- run: cargo nextest run --locked --profile ci -p "$(cargo pkgid)" -p scrawl-capture --bin hex --lib --features capture
|
|
- name: No compromised eMudhra CA roots
|
|
run: cargo build --locked --bin hex && scripts/check-ca-roots.sh target/debug/hex
|