1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: CI
on:
pull_request:
branches:
push:
branches:
permissions:
contents: read
jobs:
build-test:
name: build-test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# macos-13 is GitHub-deprecated and has unreliable runner availability.
# macos-14 (Sonoma, current floor) covers the macOS path going forward.
os:
rust:
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v2
- name: fmt
run: cargo fmt --all -- --check
- name: clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: build
run: cargo build --release --all-features
- name: test
run: cargo test --all-features --no-fail-fast
# README must keep the macOS Gatekeeper workaround documented; if a
# future doc rewrite drops it, fail the build so the regression is
# loud instead of silently leaving Mac users staring at a Gatekeeper
# dialog with no instructions.
- name: README has macOS xattr workaround
run: grep -q "xattr -d com.apple.quarantine" README.md
# detect_paths.sh ships in a follow-up; re-add this step there.