Skip to content

Commit 4adf09b

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

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff 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'

0 commit comments

Comments
 (0)