Skip to content

Commit d44d47b

Browse files
authored
ci: disable cache-bin to fix flaky macOS builds (#411)
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.
1 parent 6f0fd96 commit d44d47b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/actions/rust-build/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ runs:
1818
- uses: Swatinem/rust-cache@v2
1919
with:
2020
save-if: ${{ inputs.save-if }}
21+
cache-bin: "false"
2122
- name: Enable perf_event_open and kallsyms for tests
2223
if: runner.os == 'Linux'
2324
shell: bash

0 commit comments

Comments
 (0)