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