From 959ed855673007b2826f2891f3032828ae744bc4 Mon Sep 17 00:00:00 2001 From: Russell Cohen Date: Fri, 15 May 2026 18:14:11 +0000 Subject: [PATCH] ci: disable cache-bin to fix flaky macOS builds Swatinem/rust-cache with cache-bin: true (the default) caches ~/.cargo/bin, which contains rustup proxy binaries. On macOS, rustup uses RUSTUP_PERMIT_COPY_RENAME=1, so these proxies are copies of the rustup binary. When the cache restores stale copies, they can resolve to rustup-init instead of the proper cargo proxy, causing: error: unexpected argument 'test' found Usage: rustup-init[EXE] [OPTIONS] Setting cache-bin: false prevents caching the bin directory, letting rustup manage its own proxy binaries correctly. --- .github/actions/rust-build/action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/actions/rust-build/action.yml b/.github/actions/rust-build/action.yml index 8a3ff049..703251c9 100644 --- a/.github/actions/rust-build/action.yml +++ b/.github/actions/rust-build/action.yml @@ -18,6 +18,7 @@ runs: - uses: Swatinem/rust-cache@v2 with: save-if: ${{ inputs.save-if }} + cache-bin: "false" - name: Enable perf_event_open and kallsyms for tests if: runner.os == 'Linux' shell: bash