From 81b3fb31f40c85b748d2bfd8fcbd1cd301e1b496 Mon Sep 17 00:00:00 2001 From: Samuel K Date: Thu, 14 May 2026 13:32:54 -0500 Subject: [PATCH] fix(ci): disable rust-cache bin caching to fix macOS cargo resolution New macOS runner images (20260511.0048+) ship a broken Homebrew rustup-init shim at /opt/homebrew/bin/cargo. When swatinem/rust-cache restores cached binaries, it can restore this shim over the real cargo binary installed by dtolnay/rust-toolchain, causing 'cargo metadata' to fail with 'Usage: rustup-init[EXE] [OPTIONS]'. Setting cache-bin: false prevents rust-cache from caching or restoring the cargo/rustc binaries, letting the toolchain action's binaries take precedence. Ref: actions/runner-images#14097, actions/runner-images#14099, Swatinem/rust-cache#341 --- .github/workflows/pr-ci.yml | 1 + .github/workflows/release.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/pr-ci.yml b/.github/workflows/pr-ci.yml index b85b20fc6..a5e3fd371 100644 --- a/.github/workflows/pr-ci.yml +++ b/.github/workflows/pr-ci.yml @@ -637,6 +637,7 @@ jobs: with: workspaces: "./desktop/src-tauri -> target" shared-key: "desktop-${{ matrix.runner }}" + cache-bin: "false" - name: get operating system lowercase id: os diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b8019afe1..243ebf66e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -99,6 +99,7 @@ jobs: with: workspaces: "./desktop/src-tauri -> target" shared-key: "desktop-${{ matrix.runner }}" + cache-bin: "false" - name: get operating system lowercase id: os