2020-07-24 18:06:33 +00:00
|
|
|
name: metrics
|
2020-07-24 14:28:07 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_INCREMENTAL: 0
|
|
|
|
CARGO_NET_RETRY: 10
|
2020-11-02 15:31:38 +00:00
|
|
|
RUSTFLAGS: "-D warnings -W unreachable-pub"
|
2020-07-24 14:28:07 +00:00
|
|
|
RUSTUP_MAX_RETRIES: 10
|
|
|
|
|
|
|
|
jobs:
|
2020-07-24 18:24:14 +00:00
|
|
|
metrics:
|
2021-12-22 18:57:26 +00:00
|
|
|
if: github.repository == 'rust-analyzer/rust-analyzer'
|
2020-07-24 14:28:07 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install Rust toolchain
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
|
|
|
profile: minimal
|
|
|
|
override: true
|
|
|
|
components: rust-src
|
|
|
|
|
|
|
|
- name: Collect metrics
|
|
|
|
run: cargo xtask metrics
|
|
|
|
env:
|
2020-07-24 18:53:08 +00:00
|
|
|
METRICS_TOKEN: ${{ secrets.METRICS_TOKEN }}
|