From c1eef273b3ec35dd86f01b06808c72db3368da04 Mon Sep 17 00:00:00 2001 From: Till Hartmann Date: Wed, 27 Nov 2024 14:50:18 +0100 Subject: [PATCH] more caching --- .github/workflows/rust.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 4b44e752..19fb242a 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -104,6 +104,11 @@ jobs: with: repo-token: ${{ secrets.GITHUB_TOKEN }} + - uses: Swatinem/rust-cache@v2 + with: + cache-directories: | + ~/.cargo/registry/src/**/librocksdb-sys-* + - name: cargo build run: cargo build --verbose @@ -111,8 +116,8 @@ jobs: run: cargo test --verbose - uses: Swatinem/rust-cache@v2 + if: ${{ needs.release-please.outputs.release_created }} with: - key: "covtest" cache-directories: | ~/.cargo/registry/src/**/librocksdb-sys-*