don't remove tools from cache

On CI, we remove this project's artifacts from ./target before caching
it. This way, cache never changes, because it only caches deps.

We do this approximatelly, and, together with our own tools crate, we
also remove itertools, which are used by some other deps. Given that
tools change rarely, let's just cache them?
This commit is contained in:
Aleksey Kladov 2019-05-30 10:17:29 +03:00
parent 8c3cd8f121
commit 0f6951249e

View File

@ -1,7 +1,7 @@
cache: cargo
before_cache:
- find ./target/debug -maxdepth 1 -type f -delete
- rm -fr ./target/debug/{deps,.fingerprint}/{*ra_*,*test*,*tools*,*gen_lsp*,*thread_worker*}
- rm -fr ./target/debug/{deps,.fingerprint}/{*ra_*,*test*,*gen_lsp*,*thread_worker*}
- rm -f ./target/.rustc_info.json
matrix: