Segregate lint and test cache
All checks were successful
CI / lint (push) Successful in 1m14s
CI / Build and test (, beta) (push) Successful in 1m53s
CI / Build and test (, 1.73.0) (push) Successful in 1m54s
CI / Build and test (, nightly) (push) Successful in 1m23s
CI / lint (pull_request) Successful in 53s
CI / Build and test (, beta) (pull_request) Successful in 1m37s
CI / Build and test (, nightly) (pull_request) Successful in 1m52s
CI / Build and test (, 1.73.0) (pull_request) Successful in 6m42s

As Clippy does not compile dependencies and completes first, they end up never being cached
This commit is contained in:
Val Lorentz 2023-11-17 16:22:37 +01:00
parent d090fec61c
commit 603067d1fc

View File

@ -25,7 +25,7 @@ jobs:
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-1.73.0
key: ${{ runner.os }}-cargo-1.73.0-lint
- uses: actions-rs/toolchain@v1
with:
@ -80,7 +80,7 @@ jobs:
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ matrix.rust }}
key: ${{ runner.os }}-cargo-${{ matrix.rust }}-test
- name: Install rust (${{ matrix.rust }})
uses: actions-rs/toolchain@v1