From a43a6c01d7d28c050967d13ca29af952a2ef4b9b Mon Sep 17 00:00:00 2001 From: Cody Date: Fri, 28 Jul 2023 01:51:59 -0500 Subject: [PATCH] Fix caching --- .github/workflows/linting.yml | 6 +++--- .github/workflows/testing.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 1a72dbc..42b6707 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -13,7 +13,7 @@ jobs: ~/.cargo/registry ~/.cargo/git target - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + key: ${{ runner.os }}-rustc-${{ matrix.rust }}-cargo-${{ hashFiles('**/Cargo.lock') }}-deplint - run: rm rust-toolchain.toml - uses: EmbarkStudios/cargo-deny-action@v1 with: @@ -30,7 +30,7 @@ jobs: ~/.cargo/registry ~/.cargo/git target - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + key: ${{ runner.os }}-rustc-${{ matrix.rust }}-cargo-${{ hashFiles('**/Cargo.lock') }}-lint - run: rm rust-toolchain.toml - uses: dtolnay/rust-toolchain@stable with: @@ -51,7 +51,7 @@ jobs: ~/.cargo/registry ~/.cargo/git target - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + key: ${{ runner.os }}-rustc-${{ matrix.rust }}-cargo-${{ hashFiles('**/Cargo.lock') }}-fmt - run: rm rust-toolchain.toml - uses: dtolnay/rust-toolchain@stable with: diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 49f3799..96150cf 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -22,7 +22,7 @@ jobs: ~/.cargo/registry ~/.cargo/git target - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + key: ${{ runner.os }}-rustc-${{ matrix.rust }}-cargo-${{ hashFiles('**/Cargo.lock') }} - run: rm rust-toolchain.toml - uses: dtolnay/rust-toolchain@stable with: