Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,20 @@ jobs:
strategy:
fail-fast: false
matrix:
# Pinned to macos-14 instead of macos-latest: macos-15 ships a
# broken Homebrew cargo wrapper that dispatches to rustup-init.
# See actions/runner-images#13985.
os: [ubuntu-latest, macos-14]
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable @ 2026-05-13
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
with:
# Do NOT cache ~/.cargo/bin. A prior macOS run captured a poisoned
# ~/.cargo/bin/rustup symlink pointing at /opt/homebrew/bin/rustup-init
# (Homebrew's broken wrapper). Every restore overwrote the working
# rustup that dtolnay installs, breaking `cargo build` with
# "unexpected argument 'build'". prefix-key is bumped to evict the
# existing poisoned cache entries.
cache-bin: "false"
prefix-key: "v1-rust"
- name: cargo build
run: cargo build --workspace --all-targets --locked
- name: cargo test
Expand All @@ -42,6 +48,9 @@ jobs:
with:
components: clippy, rustfmt
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
with:
cache-bin: "false"
prefix-key: "v1-rust"
- name: cargo fmt
run: cargo fmt --all -- --check
- name: cargo clippy
Expand Down
Loading