From fe2b873db6d74c5b7f495d7b1f0de1e7bbaedeee Mon Sep 17 00:00:00 2001 From: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com> Date: Thu, 27 Aug 2026 09:31:06 -0700 Subject: [PATCH] Avoid Cargo cache cleanup races on macOS Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com> --- .github/workflows/dep_build_test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/dep_build_test.yml b/.github/workflows/dep_build_test.yml index fb98b57cac..b485b207e3 100644 --- a/.github/workflows/dep_build_test.yml +++ b/.github/workflows/dep_build_test.yml @@ -87,6 +87,8 @@ jobs: - name: Rust cache uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1 with: + # Concurrent macOS runners share ~/.cargo/bin, so cleanup can remove Cargo from another job. + cache-bin: ${{ runner.os != 'macOS' }} shared-key: "${{ inputs.arch }}-${{ runner.os }}-${{ inputs.hypervisor }}-${{ inputs.config }}" cache-on-failure: "true" # Only save on main as caches are not shared across branches.