From 81bafb14452c39729398c314edf9f2bbfaa6762c Mon Sep 17 00:00:00 2001 From: tjjfvi Date: Fri, 23 Feb 2024 13:17:09 -0500 Subject: [PATCH] fix cache paths --- .github/workflows/checks.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index decd85e5..9fac90f1 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 - run: RUSTFLAGS="-D warnings" cargo check --all-targets --features trace @@ -26,7 +29,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 - run: cargo test --release --features _fuzz --test fuzz @@ -39,7 +45,10 @@ jobs: components: rustfmt - uses: actions/cache@v2 with: - path: ~/.cargo/registry ~/.cargo/git target + path: | + ~/.cargo/registry + ~/.cargo/git + target key: ${{ runner.os }}-fmt-${{ hashFiles('**/Cargo.lock') }} - run: cargo fmt --check bench: @@ -49,7 +58,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 }}-bench-${{ hashFiles('**/Cargo.lock') }} - run: cargo bench cspell: