diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/metrics.yaml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/.github/workflows/metrics.yaml b/.github/workflows/metrics.yaml new file mode 100644 index 000000000..e51c62bb4 --- /dev/null +++ b/.github/workflows/metrics.yaml | |||
@@ -0,0 +1,38 @@ | |||
1 | name: rustdoc | ||
2 | on: | ||
3 | push: | ||
4 | branches: | ||
5 | - master | ||
6 | |||
7 | env: | ||
8 | CARGO_INCREMENTAL: 0 | ||
9 | CARGO_NET_RETRY: 10 | ||
10 | RUSTFLAGS: -D warnings | ||
11 | RUSTUP_MAX_RETRIES: 10 | ||
12 | |||
13 | jobs: | ||
14 | rustdoc: | ||
15 | runs-on: ubuntu-latest | ||
16 | |||
17 | steps: | ||
18 | - name: Checkout repository | ||
19 | uses: actions/checkout@v2 | ||
20 | |||
21 | - name: Checkout metrics repository | ||
22 | uses: actions/checkout@v2 | ||
23 | with: | ||
24 | repository: "rust-analyzer/metrics" | ||
25 | path: "target/metrics" | ||
26 | |||
27 | - name: Install Rust toolchain | ||
28 | uses: actions-rs/toolchain@v1 | ||
29 | with: | ||
30 | toolchain: stable | ||
31 | profile: minimal | ||
32 | override: true | ||
33 | components: rust-src | ||
34 | |||
35 | - name: Collect metrics | ||
36 | run: cargo xtask metrics | ||
37 | env: | ||
38 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||