switch back to old cleaning strategy

Turns out, Cargo is pretty bad at cleaning after itself: I see .rmeta,
.rlib and .d files after clean :(
This commit is contained in:
Aleksey Kladov 2019-07-24 12:35:00 +03:00
parent bf3030404e
commit 4d544fbf9b

View file

@ -1,9 +1,7 @@
cache: cargo
before_cache:
# ask Cargo to clean up artifacts for workspace crates
- cargo clean $(printf -- '--package %s ' $(cd crates; ls))
# Cargo doesn't clean up depinfo itself, do it manually
- find ./target/debug -maxdepth 2 -iname '*.d' -delete
- find ./target/debug -maxdepth 1 -type f -delete
- rm -fr ./target/debug/{deps,.fingerprint}/{*ra_*,*test*,*gen_lsp*,*thread_worker*}
- rm -f ./target/.rustc_info.json
matrix: