fork/rust-analyzer

git clone https://git.julia.blue/fork/rust-analyzer

borsAuto merge of #12776 - matklad:nosu, r=matkladf2c2c36efe

master
613 B30 linesraw
1name: metrics
2on:
3  push:
4   branches:
5   - master
6
7env:
8  CARGO_INCREMENTAL: 0
9  CARGO_NET_RETRY: 10
10  RUSTFLAGS: "-D warnings -W unreachable-pub"
11  RUSTUP_MAX_RETRIES: 10
12
13jobs:
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@v3
21
22    - name: Install Rust toolchain
23      run: |
24        rustup update --no-self-update stable
25        rustup component add rustfmt rust-src
26
27    - name: Collect metrics
28      run: cargo xtask metrics
29      env:
30        METRICS_TOKEN: ${{ secrets.METRICS_TOKEN }}