Skip to content

Commit 3576e3a

Browse files
authored
Cache cargo index (#738)
1 parent 2516775 commit 3576e3a

12 files changed

+91
-71
lines changed

.github/workflows/blobby.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@ jobs:
2525
- 1.39.0 # MSRV
2626
- stable
2727
steps:
28-
- uses: actions/checkout@v1
29-
- uses: actions-rs/toolchain@v1
30-
with:
31-
profile: minimal
32-
toolchain: ${{ matrix.rust }}
33-
override: true
34-
- run: cargo test --release
28+
- uses: actions/checkout@v2
29+
- uses: RustCrypto/actions/cargo-cache@master
30+
- uses: actions-rs/toolchain@v1
31+
with:
32+
profile: minimal
33+
toolchain: ${{ matrix.rust }}
34+
override: true
35+
- run: cargo test --release
3536

3637
minimal-versions:
3738
uses: RustCrypto/actions/.github/workflows/minimal-versions.yml@master

.github/workflows/block-buffer.yml

+11-9
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ jobs:
2828
- thumbv7em-none-eabi
2929
- wasm32-unknown-unknown
3030
steps:
31-
- uses: actions/checkout@v1
31+
- uses: actions/checkout@v2
32+
- uses: RustCrypto/actions/cargo-cache@master
3233
- uses: actions-rs/toolchain@v1
3334
with:
3435
profile: minimal
@@ -50,11 +51,12 @@ jobs:
5051
- 1.41.0 # MSRV
5152
- stable
5253
steps:
53-
- uses: actions/checkout@v1
54-
- uses: actions-rs/toolchain@v1
55-
with:
56-
profile: minimal
57-
toolchain: ${{ matrix.rust }}
58-
override: true
59-
- run: cargo test --release
60-
- run: cargo test --all-features --release
54+
- uses: actions/checkout@v2
55+
- uses: RustCrypto/actions/cargo-cache@master
56+
- uses: actions-rs/toolchain@v1
57+
with:
58+
profile: minimal
59+
toolchain: ${{ matrix.rust }}
60+
override: true
61+
- run: cargo test --release
62+
- run: cargo test --all-features --release

.github/workflows/block-padding.yml

+10-8
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ jobs:
2828
- thumbv7em-none-eabi
2929
- wasm32-unknown-unknown
3030
steps:
31-
- uses: actions/checkout@v1
31+
- uses: actions/checkout@v2
32+
- uses: RustCrypto/actions/cargo-cache@master
3233
- uses: actions-rs/toolchain@v1
3334
with:
3435
profile: minimal
@@ -50,10 +51,11 @@ jobs:
5051
- 1.56.0 # MSRV
5152
- stable
5253
steps:
53-
- uses: actions/checkout@v1
54-
- uses: actions-rs/toolchain@v1
55-
with:
56-
profile: minimal
57-
toolchain: ${{ matrix.rust }}
58-
override: true
59-
- run: cargo test
54+
- uses: actions/checkout@v2
55+
- uses: RustCrypto/actions/cargo-cache@master
56+
- uses: actions-rs/toolchain@v1
57+
with:
58+
profile: minimal
59+
toolchain: ${{ matrix.rust }}
60+
override: true
61+
- run: cargo test

.github/workflows/cpufeatures.yml

+4
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
runs-on: ubuntu-latest
4444
steps:
4545
- uses: actions/checkout@v2
46+
- uses: RustCrypto/actions/cargo-cache@master
4647
- uses: actions-rs/toolchain@v1
4748
with:
4849
toolchain: ${{ matrix.rust }}
@@ -62,6 +63,7 @@ jobs:
6263
runs-on: macos-latest
6364
steps:
6465
- uses: actions/checkout@v2
66+
- uses: RustCrypto/actions/cargo-cache@master
6567
- uses: actions-rs/toolchain@v1
6668
with:
6769
profile: minimal
@@ -84,6 +86,7 @@ jobs:
8486
runs-on: windows-latest
8587
steps:
8688
- uses: actions/checkout@v2
89+
- uses: RustCrypto/actions/cargo-cache@master
8790
- uses: actions-rs/toolchain@v1
8891
with:
8992
profile: minimal
@@ -106,6 +109,7 @@ jobs:
106109
runs-on: ubuntu-latest
107110
steps:
108111
- uses: actions/checkout@v2
112+
- uses: RustCrypto/actions/cargo-cache@master
109113
- uses: actions-rs/toolchain@v1
110114
with:
111115
toolchain: ${{ matrix.rust }}

.github/workflows/dbl.yml

+10-8
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ jobs:
2828
- thumbv7em-none-eabi
2929
- wasm32-unknown-unknown
3030
steps:
31-
- uses: actions/checkout@v1
31+
- uses: actions/checkout@v2
32+
- uses: RustCrypto/actions/cargo-cache@master
3233
- uses: actions-rs/toolchain@v1
3334
with:
3435
profile: minimal
@@ -50,10 +51,11 @@ jobs:
5051
- 1.41.0 # MSRV
5152
- stable
5253
steps:
53-
- uses: actions/checkout@v1
54-
- uses: actions-rs/toolchain@v1
55-
with:
56-
profile: minimal
57-
toolchain: ${{ matrix.rust }}
58-
override: true
59-
- run: cargo test --release
54+
- uses: actions/checkout@v2
55+
- uses: RustCrypto/actions/cargo-cache@master
56+
- uses: actions-rs/toolchain@v1
57+
with:
58+
profile: minimal
59+
toolchain: ${{ matrix.rust }}
60+
override: true
61+
- run: cargo test --release

.github/workflows/hex-literal.yml

+10-8
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ jobs:
2828
- thumbv7em-none-eabi
2929
- wasm32-unknown-unknown
3030
steps:
31-
- uses: actions/checkout@v1
31+
- uses: actions/checkout@v2
32+
- uses: RustCrypto/actions/cargo-cache@master
3233
- uses: actions-rs/toolchain@v1
3334
with:
3435
profile: minimal
@@ -50,10 +51,11 @@ jobs:
5051
- 1.45.0 # MSRV
5152
- stable
5253
steps:
53-
- uses: actions/checkout@v1
54-
- uses: actions-rs/toolchain@v1
55-
with:
56-
profile: minimal
57-
toolchain: ${{ matrix.rust }}
58-
override: true
59-
- run: cargo test --release
54+
- uses: actions/checkout@v2
55+
- uses: RustCrypto/actions/cargo-cache@master
56+
- uses: actions-rs/toolchain@v1
57+
with:
58+
profile: minimal
59+
toolchain: ${{ matrix.rust }}
60+
override: true
61+
- run: cargo test --release

.github/workflows/inout.yml

+12-10
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ jobs:
2828
- thumbv7em-none-eabi
2929
- wasm32-unknown-unknown
3030
steps:
31-
- uses: actions/checkout@v1
31+
- uses: actions/checkout@v2
32+
- uses: RustCrypto/actions/cargo-cache@master
3233
- uses: actions-rs/toolchain@v1
3334
with:
3435
profile: minimal
@@ -51,12 +52,13 @@ jobs:
5152
- 1.56.0 # MSRV
5253
- stable
5354
steps:
54-
- uses: actions/checkout@v1
55-
- uses: actions-rs/toolchain@v1
56-
with:
57-
profile: minimal
58-
toolchain: ${{ matrix.rust }}
59-
override: true
60-
- run: cargo test
61-
- run: cargo test --features block-padding
62-
- run: cargo test --all-features
55+
- uses: actions/checkout@v2
56+
- uses: RustCrypto/actions/cargo-cache@master
57+
- uses: actions-rs/toolchain@v1
58+
with:
59+
profile: minimal
60+
toolchain: ${{ matrix.rust }}
61+
override: true
62+
- run: cargo test
63+
- run: cargo test --features block-padding
64+
- run: cargo test --all-features

.github/workflows/opaque-debug.yml

+10-8
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ jobs:
2828
- thumbv7em-none-eabi
2929
- wasm32-unknown-unknown
3030
steps:
31-
- uses: actions/checkout@v1
31+
- uses: actions/checkout@v2
32+
- uses: RustCrypto/actions/cargo-cache@master
3233
- uses: actions-rs/toolchain@v1
3334
with:
3435
profile: minimal
@@ -50,10 +51,11 @@ jobs:
5051
- 1.41.0 # MSRV
5152
- stable
5253
steps:
53-
- uses: actions/checkout@v1
54-
- uses: actions-rs/toolchain@v1
55-
with:
56-
profile: minimal
57-
toolchain: ${{ matrix.rust }}
58-
override: true
59-
- run: cargo test --release
54+
- uses: actions/checkout@v2
55+
- uses: RustCrypto/actions/cargo-cache@master
56+
- uses: actions-rs/toolchain@v1
57+
with:
58+
profile: minimal
59+
toolchain: ${{ matrix.rust }}
60+
override: true
61+
- run: cargo test --release

.github/workflows/security-audit.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: Security Audit
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v1
16+
- uses: actions/checkout@v2
1717
- name: Cache cargo bin
1818
uses: actions/cache@v1
1919
with:

.github/workflows/workspace.yml

+10-9
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,20 @@ jobs:
1313
clippy:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v1
17-
- uses: actions-rs/toolchain@v1
18-
with:
19-
toolchain: 1.51.0 # Highest MSRV in repo
20-
components: clippy
21-
override: true
22-
profile: minimal
23-
- run: cargo clippy --all --all-features -- -D warnings
16+
- uses: actions/checkout@v2
17+
- uses: RustCrypto/actions/cargo-cache@master
18+
- uses: actions-rs/toolchain@v1
19+
with:
20+
toolchain: 1.51.0 # Highest MSRV in repo
21+
components: clippy
22+
override: true
23+
profile: minimal
24+
- run: cargo clippy --all --all-features -- -D warnings
2425

2526
rustfmt:
2627
runs-on: ubuntu-latest
2728
steps:
28-
- uses: actions/checkout@v1
29+
- uses: actions/checkout@v2
2930
- uses: actions-rs/toolchain@v1
3031
with:
3132
toolchain: stable

.github/workflows/zeroize.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ jobs:
2929
- thumbv7em-none-eabi
3030
- wasm32-unknown-unknown
3131
steps:
32-
- uses: actions/checkout@v1
32+
- uses: actions/checkout@v2
33+
- uses: RustCrypto/actions/cargo-cache@master
3334
- uses: actions-rs/toolchain@v1
3435
with:
3536
toolchain: ${{ matrix.rust }}
@@ -56,6 +57,7 @@ jobs:
5657
runs-on: ${{ matrix.platform }}
5758
steps:
5859
- uses: actions/checkout@v2
60+
- uses: RustCrypto/actions/cargo-cache@master
5961
- uses: actions-rs/toolchain@v1
6062
with:
6163
toolchain: ${{ matrix.toolchain }}

Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)