From 4c580e9a35730b2994a896b1b351fb41602995ee Mon Sep 17 00:00:00 2001 From: Sowasvonbot <> Date: Sat, 20 Jan 2024 22:35:58 +0100 Subject: [PATCH] try to use shared key between jobs for caching --- .github/workflows/rust.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 8a127f85..37b36884 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -30,6 +30,8 @@ jobs: steps: - uses: actions/checkout@v4 - uses: Swatinem/rust-cache@v2 + with: + shared-key: "build-files" - name: Run cargo fmt run: cargo fmt -- --check @@ -41,6 +43,8 @@ jobs: steps: - uses: actions/checkout@v4 - uses: Swatinem/rust-cache@v2 + with: + shared-key: "build-files" - name: Run linter run: cargo clippy -- -D warnings @@ -52,5 +56,7 @@ jobs: steps: - uses: actions/checkout@v4 - uses: Swatinem/rust-cache@v2 + with: + shared-key: "build-files" - name: Run tests run: cargo test --verbose