Skip to content

Commit fc5c0b1

Browse files
committed
Update CI
1 parent 2635c77 commit fc5c0b1

File tree

1 file changed

+5
-80
lines changed

1 file changed

+5
-80
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,7 @@ jobs:
2929
profile: minimal
3030
override: true
3131
id: toolchain
32-
- name: Cache Cargo registry
33-
uses: actions/cache@v2
34-
with:
35-
path: ~/.cargo/registry
36-
key: cargo-registry-test-${{ runner.os }}-${{ matrix.features }}-${{ hashFiles('Cargo.*') }}
37-
restore-keys: |
38-
cargo-registry-test-${{ runner.os }}-${{ matrix.features }}-
39-
cargo-registry-test-${{ runner.os }}-
40-
- name: Cache Cargo build
41-
uses: actions/cache@v2
42-
with:
43-
path: target
44-
key: cargo-target-test-${{ runner.os }}-${{ steps.toolchain.outputs.rustc_hash }}-${{ matrix.features }}-${{ hashFiles('**/Cargo.*') }}
45-
restore-keys: |
46-
cargo-target-test-${{ runner.os }}-${{ steps.toolchain.outputs.rustc_hash }}-${{ matrix.features }}-
47-
cargo-target-test-${{ runner.os }}-${{ steps.toolchain.outputs.rustc_hash }}-
32+
- uses: Swatinem/rust-cache@v1
4833
- run: echo 'RUSTFLAGS=--allow unknown_lints' >> $GITHUB_ENV
4934
if: matrix.toolchain == '1.41.0'
5035
- name: Build `oauth1-request`
@@ -82,22 +67,7 @@ jobs:
8267
profile: minimal
8368
override: true
8469
id: toolchain
85-
- name: Cache Cargo registry
86-
uses: actions/cache@v2
87-
with:
88-
path: ~/.cargo/registry
89-
key: cargo-registry-derive-test-${{ runner.os }}-${{ matrix.features }}-${{ hashFiles('Cargo.*') }}
90-
restore-keys: |
91-
cargo-registry-derive-test-${{ runner.os }}-${{ matrix.features }}-
92-
cargo-registry-derive-test-${{ runner.os }}-
93-
- name: Cache Cargo build
94-
uses: actions/cache@v2
95-
with:
96-
path: target
97-
key: cargo-target-derive-test-${{ runner.os }}-${{ steps.toolchain.outputs.rustc_hash }}-${{ matrix.features }}-${{ hashFiles('**/Cargo.*') }}
98-
restore-keys: |
99-
cargo-target-derive-test-${{ runner.os }}-${{ steps.toolchain.outputs.rustc_hash }}-${{ matrix.features }}-
100-
cargo-target-derive-test-${{ runner.os }}-${{ steps.toolchain.outputs.rustc_hash }}-
70+
- uses: Swatinem/rust-cache@v1
10171
- name: Build `oauth1-request-derive`
10272
uses: actions-rs/cargo@v1
10373
with:
@@ -148,23 +118,7 @@ jobs:
148118
profile: minimal
149119
override: true
150120
id: toolchain
151-
- name: Cache Cargo registry
152-
uses: actions/cache@v2
153-
with:
154-
path: ~/.cargo/registry
155-
key: cargo-registry-credentials-msrv-${{ steps.toolchain.outputs.rustc_hash }}-${{ matrix.features }}-${{ hashFiles('Cargo.*') }}
156-
restore-keys: |
157-
cargo-registry-credentials-msrv-${{ steps.toolchain.outputs.rustc_hash }}-${{ matrix.features }}-
158-
cargo-registry-credentials-msrv-${{ steps.toolchain.outputs.rustc_hash }}-
159-
- name: Cache Cargo build
160-
uses: actions/cache@v2
161-
with:
162-
path: target
163-
key: cargo-target-credentials-${{ runner.os }}-${{ steps.toolchain.outputs.rustc_hash }}-${{ matrix.features }}-${{ hashFiles('**/Cargo.*') }}
164-
restore-keys: |
165-
cargo-target-credentials-${{ runner.os }}-${{ steps.toolchain.outputs.rustc_hash }}-${{ matrix.features }}-${{ hashFiles('**/Cargo.*') }}
166-
cargo-target-credentials-${{ runner.os }}-${{ steps.toolchain.outputs.rustc_hash }}-${{ matrix.features }}-
167-
cargo-target-credentials-${{ runner.os }}-${{ steps.toolchain.outputs.rustc_hash }}-
121+
- uses: Swatinem/rust-cache@v1
168122
- uses: actions/checkout@v2
169123
with:
170124
repository: rust-lang/crates.io-index
@@ -209,23 +163,7 @@ jobs:
209163
profile: minimal
210164
override: true
211165
id: toolchain
212-
- name: Cache Cargo registry
213-
uses: actions/cache@v2
214-
with:
215-
path: ~/.cargo/registry
216-
key: cargo-registry-credentials-test-${{ runner.os }}-${{ matrix.features }}-${{ hashFiles('Cargo.*') }}
217-
restore-keys: |
218-
cargo-registry-credentials-test-${{ runner.os }}-${{ matrix.features }}-
219-
cargo-registry-credentials-test-${{ runner.os }}-
220-
- name: Cache Cargo build
221-
uses: actions/cache@v2
222-
with:
223-
path: target
224-
key: cargo-target-credentials-${{ runner.os }}-${{ steps.toolchain.outputs.rustc_hash }}-${{ matrix.features }}-${{ hashFiles('**/Cargo.*') }}
225-
restore-keys: |
226-
cargo-target-credentials-${{ runner.os }}-${{ steps.toolchain.outputs.rustc_hash }}-${{ matrix.features }}-${{ hashFiles('**/Cargo.*') }}
227-
cargo-target-credentials-${{ runner.os }}-${{ steps.toolchain.outputs.rustc_hash }}-${{ matrix.features }}-
228-
cargo-target-credentials-${{ runner.os }}-${{ steps.toolchain.outputs.rustc_hash }}-
166+
- uses: Swatinem/rust-cache@v1
229167
- name: Build `oauth-credentials`
230168
uses: actions-rs/cargo@v1
231169
with:
@@ -247,20 +185,7 @@ jobs:
247185
toolchain: stable
248186
profile: minimal
249187
id: toolchain
250-
- name: Cache Cargo registry
251-
uses: actions/cache@v2
252-
with:
253-
path: ~/.cargo/registry
254-
key: cargo-registry-min-deps-${{ runner.os }}-${{ hashFiles('Cargo.*') }}
255-
restore-keys: |
256-
cargo-registry-min-deps-${{ runner.os }}-
257-
- name: Cache Cargo build
258-
uses: actions/cache@v2
259-
with:
260-
path: target
261-
key: cargo-target-min-deps-${{ runner.os }}-${{ steps.toolchain.outputs.rustc_hash }}-${{ hashFiles('**/Cargo.*') }}
262-
restore-keys: |
263-
cargo-target-min-deps-${{ runner.os }}-${{ steps.toolchain.outputs.rustc_hash }}-
188+
- uses: Swatinem/rust-cache@v1
264189
- name: Cargo update
265190
uses: actions-rs/cargo@v1
266191
with:

0 commit comments

Comments
 (0)