Skip to content

Commit cb4f132

Browse files
committed
Run analysis-stats on CI
1 parent 82a8774 commit cb4f132

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/ci.yaml

+13
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,19 @@ jobs:
5555
- name: Test
5656
run: cargo test -- --nocapture --quiet
5757

58+
# It's faster to `test` before `build` ¯\_(ツ)_/¯
59+
- name: Build
60+
if: matrix.os == 'ubuntu-latest'
61+
run: cargo build --quiet
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+
5871
# Weird targets to catch non-portable code
5972
rust-cross:
6073
if: github.repository == 'rust-lang/rust-analyzer'

0 commit comments

Comments
 (0)