mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
Merge #1567
1567: speedup CI r=matklad a=matklad Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
6929da6518
@ -1,7 +1,9 @@
|
|||||||
cache: cargo
|
cache: cargo
|
||||||
before_cache:
|
before_cache:
|
||||||
- find ./target/debug -maxdepth 1 -type f -delete
|
# ask Cargo to clean up artifacts for workspace crates
|
||||||
- rm -fr ./target/debug/{deps,.fingerprint}/{*ra_*,*test*,*gen_lsp*,*thread_worker*}
|
- 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
|
||||||
- rm -f ./target/.rustc_info.json
|
- rm -f ./target/.rustc_info.json
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
@ -14,6 +16,7 @@ matrix:
|
|||||||
script:
|
script:
|
||||||
- rustup component add rustfmt
|
- rustup component add rustfmt
|
||||||
- rustup component add rust-src
|
- rustup component add rust-src
|
||||||
|
- printf "\n\n[profile.dev]\ndebug = false\nopt-level = 1\n" >> Cargo.toml
|
||||||
- cargo test --no-run # let's measure compile time separately
|
- cargo test --no-run # let's measure compile time separately
|
||||||
- cargo test
|
- cargo test
|
||||||
env:
|
env:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user