]> git.lizzy.rs Git - rust.git/blob - .github/workflows/metrics.yaml
Merge #7163
[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     runs-on: ubuntu-latest
16
17     steps:
18     - name: Checkout repository
19       uses: actions/checkout@v2
20
21     - name: Install Rust toolchain
22       uses: actions-rs/toolchain@v1
23       with:
24         toolchain: stable
25         profile: minimal
26         override: true
27         components: rust-src
28
29     - name: Collect metrics
30       run: cargo xtask metrics
31       env:
32         METRICS_TOKEN: ${{ secrets.METRICS_TOKEN }}