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: