File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -49,12 +49,25 @@ jobs:
4949 if : matrix.os == 'ubuntu-latest'
5050 run : sed -i '/\[profile.dev]/a opt-level=1' Cargo.toml
5151
52- - name : Compile
52+ - name : Compile (tests)
5353 run : cargo test --no-run --locked
5454
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+
5560 - name : Test
5661 run : cargo test -- --nocapture --quiet
5762
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+
5871 # Weird targets to catch non-portable code
5972 rust-cross :
6073 if : github.repository == 'rust-lang/rust-analyzer'
You can’t perform that action at this time.
0 commit comments