From 19b95c95dea0a38a4a26bb0ce1b2cce313f79bf8 Mon Sep 17 00:00:00 2001 From: BD103 <59022059+BD103@users.noreply.github.com> Date: Wed, 30 Oct 2024 11:48:09 -0400 Subject: [PATCH] fix: replace `Leafwing-Studios/cargo-cache` with `actions/cache` --- .github/workflows/test.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bbd5c78..6beb1b9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,12 +29,10 @@ jobs: run: cargo init --bin - name: Cache build files - uses: Leafwing-Studios/cargo-cache@v2 + uses: actions/cache@v4 with: - manifest-path: Cargo.toml - cargo-target-dir: target - # Disable `cargo-cache`'s `cargo-sweep` integration. - sweep-cache: false + key: ${{ runner.os }}-${{ hashFiles('**/Cargo.toml') }} + path: target - name: Build Rust project # working-directory: ${{ matrix.project-path }}