mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 05:38:46 +00:00
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:
parent
bf3030404e
commit
4d544fbf9b
1 changed files with 2 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue