aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/metrics.yaml32
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/metrics.yaml b/.github/workflows/metrics.yaml
new file mode 100644
index 000000000..ea780e875
--- /dev/null
+++ b/.github/workflows/metrics.yaml
@@ -0,0 +1,32 @@
1name: metrics
2on:
3 push:
4 branches:
5 - master
6
7env:
8 CARGO_INCREMENTAL: 0
9 CARGO_NET_RETRY: 10
10 RUSTFLAGS: -D warnings
11 RUSTUP_MAX_RETRIES: 10
12
13jobs:
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 }}