Skip to content

Commit

Permalink
Only cache deps
Browse files Browse the repository at this point in the history
As explained in Swatinem/rust-cache#37, build artifacts only contribute
to bloating the cache, as the divergences negate any benefits from
caching them due to the cache key not changing over most commits.
  • Loading branch information
Oppen committed Nov 22, 2022
1 parent afb9fd1 commit 0b37a30
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,7 @@ jobs:
~/.cargo/registry/cache/
~/.cargo/git/db/
target/debug/deps/
target/debug/build/
target/debug/examples/
target/release/deps/
target/release/build/
target/release/examples/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-

Expand Down

0 comments on commit 0b37a30

Please sign in to comment.