File tree 1 file changed +14
-1
lines changed 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -49,12 +49,25 @@ jobs:
49
49
if : matrix.os == 'ubuntu-latest'
50
50
run : sed -i '/\[profile.dev]/a opt-level=1' Cargo.toml
51
51
52
- - name : Compile
52
+ - name : Compile (tests)
53
53
run : cargo test --no-run --locked
54
54
55
+ # It's faster to `test` before `build` ¯\_(ツ)_/¯
56
+ - name : Compile (rust-analyzer)
57
+ if : matrix.os == 'ubuntu-latest'
58
+ run : cargo build --quiet
59
+
55
60
- name : Test
56
61
run : cargo test -- --nocapture --quiet
57
62
63
+ - name : Run analysis-stats on rust-analyzer
64
+ if : matrix.os == 'ubuntu-latest'
65
+ run : target/${{ matrix.target }}/debug/rust-analyzer analysis-stats .
66
+
67
+ - name : Run analysis-stats on rust std library
68
+ if : matrix.os == 'ubuntu-latest'
69
+ run : target/${{ matrix.target }}/debug/rust-analyzer analysis-stats --with-deps $(rustc --print sysroot)/lib/rustlib/src/rust/library/std
70
+
58
71
# Weird targets to catch non-portable code
59
72
rust-cross :
60
73
if : github.repository == 'rust-lang/rust-analyzer'
You can’t perform that action at this time.
0 commit comments