From 3fb2d18a67bd766bf21a6a59e085407740e9e284 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Fri, 15 May 2026 11:38:56 +0700 Subject: [PATCH] ci: don't cache bins on macos Works around Swatinem/rust-cache#341. Co-authored-by: Nico Burns --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 58dba4e..a4e9ffb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -118,6 +118,7 @@ jobs: uses: Swatinem/rust-cache@v2 with: save-if: ${{ github.event_name != 'merge_group' }} + cache-bin: ${{ matrix.os != 'macos-latest' }} # works around https://github.com/Swatinem/rust-cache/issues/341 - name: cargo clippy (no_std) run: cargo hack clippy --workspace --locked --optional-deps --each-feature --ignore-unknown-features --features libm --exclude-features ${{ env.FEATURES_DEPENDING_ON_STD }} --target x86_64-unknown-none -- -D warnings @@ -180,6 +181,7 @@ jobs: uses: Swatinem/rust-cache@v2 with: save-if: ${{ github.event_name != 'merge_group' }} + cache-bin: ${{ matrix.os != 'macos-latest' }} # works around https://github.com/Swatinem/rust-cache/issues/341 - name: cargo nextest run: cargo nextest run --workspace --locked --all-features --no-fail-fast @@ -232,6 +234,7 @@ jobs: uses: Swatinem/rust-cache@v2 with: save-if: ${{ github.event_name != 'merge_group' }} + cache-bin: ${{ matrix.os != 'macos-latest' }} # works around https://github.com/Swatinem/rust-cache/issues/341 - name: cargo check (no_std) run: cargo hack check ${{ env.RUST_MIN_VER_PKGS }} --locked --optional-deps --each-feature --ignore-unknown-features --features libm --exclude-features ${{ env.FEATURES_DEPENDING_ON_STD }} --target x86_64-unknown-none