diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 9d28ac5e4..6d2bbf78d 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -154,6 +154,8 @@ jobs: - uses: actions-rust-lang/setup-rust-toolchain@v1 with: toolchain: "stable" + # The explicit cache below runs after lock removal and only saves on main. + cache: false # Remove cargo.lock to force a fresh build - name: Remove Cargo.lock run: rm -f Cargo.lock