diff options
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/ci.yaml | 5 | ||||
-rw-r--r-- | .github/workflows/metrics.yaml | 32 |
2 files changed, 32 insertions, 5 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 20663196d..2acd44012 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml | |||
@@ -61,9 +61,6 @@ jobs: | |||
61 | override: true | 61 | override: true |
62 | components: rustfmt, rust-src | 62 | components: rustfmt, rust-src |
63 | 63 | ||
64 | - if: matrix.os == 'ubuntu-latest' | ||
65 | run: sudo chown -R $(whoami):$(id -ng) ~/.cargo/ | ||
66 | |||
67 | - name: Cache cargo directories | 64 | - name: Cache cargo directories |
68 | uses: actions/cache@v2 | 65 | uses: actions/cache@v2 |
69 | with: | 66 | with: |
@@ -108,8 +105,6 @@ jobs: | |||
108 | override: true | 105 | override: true |
109 | target: 'powerpc-unknown-linux-gnu' | 106 | target: 'powerpc-unknown-linux-gnu' |
110 | 107 | ||
111 | - run: sudo chown -R $(whoami):$(id -ng) ~/.cargo/ | ||
112 | |||
113 | - name: Cache cargo directories | 108 | - name: Cache cargo directories |
114 | uses: actions/cache@v2 | 109 | uses: actions/cache@v2 |
115 | with: | 110 | with: |
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 @@ | |||
1 | name: metrics | ||
2 | on: | ||
3 | push: | ||
4 | branches: | ||
5 | - master | ||
6 | |||
7 | env: | ||
8 | CARGO_INCREMENTAL: 0 | ||
9 | CARGO_NET_RETRY: 10 | ||
10 | RUSTFLAGS: -D warnings | ||
11 | RUSTUP_MAX_RETRIES: 10 | ||
12 | |||
13 | jobs: | ||
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 }} | ||