rust/.github/workflows/metrics.yaml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
613 B
YAML
Raw Normal View History

2020-07-24 13:06:33 -05:00
name: metrics
2020-07-24 09:28:07 -05:00
on:
push:
branches:
- master
env:
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
2020-11-02 09:31:38 -06:00
RUSTFLAGS: "-D warnings -W unreachable-pub"
2020-07-24 09:28:07 -05:00
RUSTUP_MAX_RETRIES: 10
jobs:
2020-07-24 13:24:14 -05:00
metrics:
2022-04-13 17:42:51 -05:00
if: github.repository == 'rust-lang/rust-analyzer'
2020-07-24 09:28:07 -05:00
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
2020-07-24 09:28:07 -05:00
- name: Install Rust toolchain
run: |
rustup update --no-self-update stable
rustup component add rustfmt rust-src
2020-07-24 09:28:07 -05:00
- name: Collect metrics
run: cargo xtask metrics
env:
2020-07-24 13:53:08 -05:00
METRICS_TOKEN: ${{ secrets.METRICS_TOKEN }}