aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-07-24 15:28:07 +0100
committerAleksey Kladov <[email protected]>2020-07-24 19:05:16 +0100
commitde714640bd744b194d1b4c918a6f44d3cba02339 (patch)
tree4436429949a9d36aa84c8333a3445135b8a41f6a /.github/workflows
parent14a3a713c74108626fe356dad21d93b84792878a (diff)
Add metrics
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/metrics.yaml38
1 files changed, 38 insertions, 0 deletions
diff --git a/.github/workflows/metrics.yaml b/.github/workflows/metrics.yaml
new file mode 100644
index 000000000..e51c62bb4
--- /dev/null
+++ b/.github/workflows/metrics.yaml
@@ -0,0 +1,38 @@
1name: rustdoc
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 rustdoc:
15 runs-on: ubuntu-latest
16
17 steps:
18 - name: Checkout repository
19 uses: actions/checkout@v2
20
21 - name: Checkout metrics repository
22 uses: actions/checkout@v2
23 with:
24 repository: "rust-analyzer/metrics"
25 path: "target/metrics"
26
27 - name: Install Rust toolchain
28 uses: actions-rs/toolchain@v1
29 with:
30 toolchain: stable
31 profile: minimal
32 override: true
33 components: rust-src
34
35 - name: Collect metrics
36 run: cargo xtask metrics
37 env:
38 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}