From 0eba47cf59323756107fa043a6230dfdea89f024 Mon Sep 17 00:00:00 2001 From: Jonathan Cubides Date: Thu, 2 Jul 2026 21:34:21 -0500 Subject: [PATCH] ci(bindings): fix rust cache with Swatinem/rust-cache Replace the hand-rolled actions/cache with Swatinem/rust-cache@v2. The old step cached only the workspace `target/` keyed on Cargo.lock and never restored `~/.cargo`, so it seldom hit. Swatinem caches `target/` plus the cargo registry and git deps, keyed on Cargo.lock and the toolchain. --- .github/workflows/bindings.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/bindings.yml b/.github/workflows/bindings.yml index 56226c4..5e2b289 100644 --- a/.github/workflows/bindings.yml +++ b/.github/workflows/bindings.yml @@ -35,13 +35,8 @@ jobs: - name: Show Foundry version run: forge --version - - name: Restore dependencies cache - uses: actions/cache@v4 - with: - path: | - target - key: rust-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }} - restore-keys: rust- + - name: Rust cache + uses: Swatinem/rust-cache@v2 - name: Run rustfmt run: just bindings-fmt-check