From 5ad7ddf0e41a50b8e3a9322a61983468b635a214 Mon Sep 17 00:00:00 2001 From: Daniel Harvey Date: Mon, 6 Nov 2023 17:28:10 +0000 Subject: [PATCH] Share cache --- .github/workflows/cargo-build.yaml | 2 ++ .github/workflows/cargo-machete.yaml | 2 ++ .github/workflows/cargo-test.yaml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/.github/workflows/cargo-build.yaml b/.github/workflows/cargo-build.yaml index beaa7462..bc7a08ad 100644 --- a/.github/workflows/cargo-build.yaml +++ b/.github/workflows/cargo-build.yaml @@ -24,6 +24,8 @@ jobs: rustup show - uses: Swatinem/rust-cache@v2 + with: + shared-key: "build" # share the cache across jobs - name: build crates run: | diff --git a/.github/workflows/cargo-machete.yaml b/.github/workflows/cargo-machete.yaml index ec913608..d6500222 100644 --- a/.github/workflows/cargo-machete.yaml +++ b/.github/workflows/cargo-machete.yaml @@ -19,6 +19,8 @@ jobs: cargo install cargo-machete - uses: Swatinem/rust-cache@v2 + with: + shared-key: "build" # share the cache across jobs - name: find unused dependencies run: | diff --git a/.github/workflows/cargo-test.yaml b/.github/workflows/cargo-test.yaml index 739976b2..0908a0d6 100644 --- a/.github/workflows/cargo-test.yaml +++ b/.github/workflows/cargo-test.yaml @@ -25,6 +25,8 @@ jobs: rustup show - uses: Swatinem/rust-cache@v2 + with: + shared-key: "build" # share the cache across jobs - uses: isbang/compose-action@v1.5.1 with: