From 6ba9d5c0355fb880855e6b4e6a4a9a0e34971792 Mon Sep 17 00:00:00 2001 From: tjjfvi Date: Fri, 23 Feb 2024 13:19:58 -0500 Subject: [PATCH] fix cache paths --- .github/workflows/checks.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 8af073319..f197d61f8 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -14,7 +14,10 @@ jobs: - uses: dtolnay/rust-toolchain@nightly - uses: actions/cache@v2 with: - path: ~/.cargo/registry ~/.cargo/git target + path: | + ~/.cargo/registry + ~/.cargo/git + target key: ${{ runner.os }}-check-${{ hashFiles('**/Cargo.lock') }} - run: RUSTFLAGS="-D warnings" cargo check --all-targets test: @@ -24,7 +27,10 @@ jobs: - uses: dtolnay/rust-toolchain@nightly - uses: actions/cache@v2 with: - path: ~/.cargo/registry ~/.cargo/git target + path: | + ~/.cargo/registry + ~/.cargo/git + target key: ${{ runner.os }}-test-${{ hashFiles('**/Cargo.lock') }} - run: cargo test clippy: @@ -36,7 +42,10 @@ jobs: components: clippy - uses: actions/cache@v2 with: - path: ~/.cargo/registry ~/.cargo/git target + path: | + ~/.cargo/registry + ~/.cargo/git + target key: ${{ runner.os }}-clippy-${{ hashFiles('**/Cargo.lock') }} - run: cargo clippy fmt: @@ -46,10 +55,6 @@ jobs: - uses: dtolnay/rust-toolchain@nightly with: components: rustfmt - - uses: actions/cache@v2 - with: - path: ~/.cargo/registry ~/.cargo/git target - key: ${{ runner.os }}-fmt-${{ hashFiles('**/Cargo.lock') }} - run: cargo fmt --check cspell: runs-on: ubuntu-latest