mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
The private keys of eight eMudhra intermediate CAs leaked (https://emudhra.we-have-a-problem.com). rustls-webpki 0.103.16 rejects chains through those intermediates even when the OS trust store still has their roots; webpki-roots / webpki-root-certs 1.0.10 drop emSign ECC Root CA - G3. scripts/check-ca-roots.sh fails on an older lockfile, a vendored PEM carrying the affected roots, or a binary that embeds them; CI runs it on the built binary.
55 lines
1.4 KiB
YAML
55 lines
1.4 KiB
YAML
name: Check macOS
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- "Cargo.toml"
|
|
- "Cargo.lock"
|
|
- "build.rs"
|
|
- "src/**"
|
|
- "native/**"
|
|
- "macos/HexMicrophoneDriver/Info.plist"
|
|
- "resources/**"
|
|
- "assets/**"
|
|
- ".github/workflows/check-macos.yml"
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- "Cargo.toml"
|
|
- "Cargo.lock"
|
|
- "build.rs"
|
|
- "src/**"
|
|
- "native/**"
|
|
- "macos/HexMicrophoneDriver/Info.plist"
|
|
- "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
|
|
- name: No compromised eMudhra CA roots
|
|
run: cargo build --locked --bin voice-control && scripts/check-ca-roots.sh target/debug/voice-control
|