]> git.lizzy.rs Git - rust.git/blob - .github/workflows/metrics.yaml
Auto merge of #11997 - lnicola:es-target, r=lnicola
[rust.git] / .github / workflows / metrics.yaml
1 name: metrics
2 on:
3   push:
4    branches:
5    - master
6
7 env:
8   CARGO_INCREMENTAL: 0
9   CARGO_NET_RETRY: 10
10   RUSTFLAGS: "-D warnings -W unreachable-pub"
11   RUSTUP_MAX_RETRIES: 10
12
13 jobs:
14   metrics:
15     if: github.repository == 'rust-lang/rust-analyzer'
16     runs-on: ubuntu-latest
17
18     steps:
19     - name: Checkout repository
20       uses: actions/checkout@v2
21
22     - name: Install Rust toolchain
23       uses: actions-rs/toolchain@v1
24       with:
25         toolchain: stable
26         profile: minimal
27         override: true
28         components: rust-src
29
30     - name: Collect metrics
31       run: cargo xtask metrics
32       env:
33         METRICS_TOKEN: ${{ secrets.METRICS_TOKEN }}