Skip to content

Commit b2926b2

Browse files
authored
Replace unmaintained actions-rs/* actions in CI workflows (#852)
Basically all of the `actions-rs/*` actions are unmaintained. See <actions-rs/toolchain#216> for more information. Due to their age they generate several warnings in CI runs. To get rid of some of those warnings the occurrences of `actions-rs/toolchain` are replaced by `dtolnay/rust-toolchain`, and the occurrences of `actions-rs/cargo` are replaced by direct invocations of `cargo`.
1 parent 0642706 commit b2926b2

13 files changed

+46
-105
lines changed

.github/workflows/blobby.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,9 @@ jobs:
2727
steps:
2828
- uses: actions/checkout@v3
2929
- uses: RustCrypto/actions/cargo-cache@master
30-
- uses: actions-rs/toolchain@v1
30+
- uses: dtolnay/rust-toolchain@master
3131
with:
32-
profile: minimal
3332
toolchain: ${{ matrix.rust }}
34-
override: true
3533
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
3634
- run: rm ../Cargo.toml
3735
- run: cargo test

.github/workflows/block-buffer.yml

+3-7
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,10 @@ jobs:
3030
steps:
3131
- uses: actions/checkout@v3
3232
- uses: RustCrypto/actions/cargo-cache@master
33-
- uses: actions-rs/toolchain@v1
33+
- uses: dtolnay/rust-toolchain@master
3434
with:
35-
profile: minimal
3635
toolchain: ${{ matrix.rust }}
37-
target: ${{ matrix.target }}
38-
override: true
36+
targets: ${{ matrix.target }}
3937
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
4038
- run: rm ../Cargo.toml
4139
- run: cargo build --target ${{ matrix.target }}
@@ -55,11 +53,9 @@ jobs:
5553
steps:
5654
- uses: actions/checkout@v3
5755
- uses: RustCrypto/actions/cargo-cache@master
58-
- uses: actions-rs/toolchain@v1
56+
- uses: dtolnay/rust-toolchain@master
5957
with:
60-
profile: minimal
6158
toolchain: ${{ matrix.rust }}
62-
override: true
6359
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
6460
- run: rm ../Cargo.toml
6561
- run: cargo test

.github/workflows/block-padding.yml

+3-7
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,10 @@ jobs:
3030
steps:
3131
- uses: actions/checkout@v3
3232
- uses: RustCrypto/actions/cargo-cache@master
33-
- uses: actions-rs/toolchain@v1
33+
- uses: dtolnay/rust-toolchain@master
3434
with:
35-
profile: minimal
3635
toolchain: ${{ matrix.rust }}
37-
target: ${{ matrix.target }}
38-
override: true
36+
targets: ${{ matrix.target }}
3937
- run: cargo build --target ${{ matrix.target }}
4038

4139
minimal-versions:
@@ -53,9 +51,7 @@ jobs:
5351
steps:
5452
- uses: actions/checkout@v3
5553
- uses: RustCrypto/actions/cargo-cache@master
56-
- uses: actions-rs/toolchain@v1
54+
- uses: dtolnay/rust-toolchain@master
5755
with:
58-
profile: minimal
5956
toolchain: ${{ matrix.rust }}
60-
override: true
6157
- run: cargo test

.github/workflows/cmov.yml

+6-12
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,10 @@ jobs:
3535
steps:
3636
- uses: actions/checkout@v3
3737
- uses: RustCrypto/actions/cargo-cache@master
38-
- uses: actions-rs/toolchain@v1
38+
- uses: dtolnay/rust-toolchain@master
3939
with:
40-
profile: minimal
4140
toolchain: ${{ matrix.rust }}
42-
target: ${{ matrix.target }}
43-
override: true
41+
targets: ${{ matrix.target }}
4442
- uses: RustCrypto/actions/cargo-hack-install@master
4543
- run: cargo build --target ${{ matrix.target }}
4644

@@ -73,12 +71,10 @@ jobs:
7371
steps:
7472
- uses: actions/checkout@v3
7573
- uses: RustCrypto/actions/cargo-cache@master
76-
- uses: actions-rs/toolchain@v1
74+
- uses: dtolnay/rust-toolchain@master
7775
with:
7876
toolchain: ${{ matrix.rust }}
79-
target: ${{ matrix.target }}
80-
profile: minimal
81-
override: true
77+
targets: ${{ matrix.target }}
8278
- run: ${{ matrix.deps }}
8379
- run: cargo test
8480

@@ -103,11 +99,9 @@ jobs:
10399
steps:
104100
- uses: actions/checkout@v3
105101
- uses: RustCrypto/actions/cargo-cache@master
106-
- uses: actions-rs/toolchain@v1
102+
- uses: dtolnay/rust-toolchain@master
107103
with:
108104
toolchain: ${{ matrix.rust }}
109-
target: ${{ matrix.target }}
110-
profile: minimal
111-
override: true
105+
targets: ${{ matrix.target }}
112106
- uses: RustCrypto/actions/cross-install@master
113107
- run: cross test --target ${{ matrix.target }}

.github/workflows/cpufeatures.yml

+8-16
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,10 @@ jobs:
4444
steps:
4545
- uses: actions/checkout@v3
4646
- uses: RustCrypto/actions/cargo-cache@master
47-
- uses: actions-rs/toolchain@v1
47+
- uses: dtolnay/rust-toolchain@master
4848
with:
4949
toolchain: ${{ matrix.rust }}
50-
target: ${{ matrix.target }}
51-
override: true
52-
profile: minimal
50+
targets: ${{ matrix.target }}
5351
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
5452
- run: rm ../Cargo.toml
5553
- run: ${{ matrix.deps }}
@@ -67,12 +65,10 @@ jobs:
6765
steps:
6866
- uses: actions/checkout@v3
6967
- uses: RustCrypto/actions/cargo-cache@master
70-
- uses: actions-rs/toolchain@v1
68+
- uses: dtolnay/rust-toolchain@master
7169
with:
72-
profile: minimal
7370
toolchain: ${{ matrix.toolchain }}
74-
target: x86_64-apple-darwin
75-
override: true
71+
targets: x86_64-apple-darwin
7672
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
7773
- run: rm ../Cargo.toml
7874
- run: cargo test
@@ -92,12 +88,10 @@ jobs:
9288
steps:
9389
- uses: actions/checkout@v3
9490
- uses: RustCrypto/actions/cargo-cache@master
95-
- uses: actions-rs/toolchain@v1
91+
- uses: dtolnay/rust-toolchain@master
9692
with:
97-
profile: minimal
9893
toolchain: ${{ matrix.toolchain }}
99-
target: ${{ matrix.target }}
100-
override: true
94+
targets: ${{ matrix.target }}
10195
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
10296
- run: rm ../Cargo.toml
10397
- run: cargo test --target ${{ matrix.target }}
@@ -117,12 +111,10 @@ jobs:
117111
steps:
118112
- uses: actions/checkout@v3
119113
- uses: RustCrypto/actions/cargo-cache@master
120-
- uses: actions-rs/toolchain@v1
114+
- uses: dtolnay/rust-toolchain@master
121115
with:
122116
toolchain: ${{ matrix.rust }}
123-
target: ${{ matrix.target }}
124-
override: true
125-
profile: minimal
117+
targets: ${{ matrix.target }}
126118
- uses: RustCrypto/actions/cross-install@master
127119
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
128120
- run: rm ../Cargo.toml

.github/workflows/dbl.yml

+3-7
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,10 @@ jobs:
3030
steps:
3131
- uses: actions/checkout@v3
3232
- uses: RustCrypto/actions/cargo-cache@master
33-
- uses: actions-rs/toolchain@v1
33+
- uses: dtolnay/rust-toolchain@master
3434
with:
35-
profile: minimal
3635
toolchain: ${{ matrix.rust }}
37-
target: ${{ matrix.target }}
38-
override: true
36+
targets: ${{ matrix.target }}
3937
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
4038
- run: rm ../Cargo.toml
4139
- run: cargo build --target ${{ matrix.target }}
@@ -55,11 +53,9 @@ jobs:
5553
steps:
5654
- uses: actions/checkout@v3
5755
- uses: RustCrypto/actions/cargo-cache@master
58-
- uses: actions-rs/toolchain@v1
56+
- uses: dtolnay/rust-toolchain@master
5957
with:
60-
profile: minimal
6158
toolchain: ${{ matrix.rust }}
62-
override: true
6359
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
6460
- run: rm ../Cargo.toml
6561
- run: cargo test

.github/workflows/fiat-constify.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@ jobs:
2828
steps:
2929
- uses: actions/checkout@v3
3030
- uses: RustCrypto/actions/cargo-cache@master
31-
- uses: actions-rs/toolchain@v1
31+
- uses: dtolnay/rust-toolchain@master
3232
with:
3333
toolchain: ${{ matrix.toolchain }}
34-
override: true
35-
profile: minimal
3634
- run: cargo test
3735
- run: cargo test --all-features

.github/workflows/hex-literal.yml

+3-7
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,10 @@ jobs:
3030
steps:
3131
- uses: actions/checkout@v3
3232
- uses: RustCrypto/actions/cargo-cache@master
33-
- uses: actions-rs/toolchain@v1
33+
- uses: dtolnay/rust-toolchain@master
3434
with:
35-
profile: minimal
3635
toolchain: ${{ matrix.rust }}
37-
target: ${{ matrix.target }}
38-
override: true
36+
targets: ${{ matrix.target }}
3937
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
4038
- run: rm ../Cargo.toml
4139
- run: cargo build --target ${{ matrix.target }}
@@ -55,11 +53,9 @@ jobs:
5553
steps:
5654
- uses: actions/checkout@v3
5755
- uses: RustCrypto/actions/cargo-cache@master
58-
- uses: actions-rs/toolchain@v1
56+
- uses: dtolnay/rust-toolchain@master
5957
with:
60-
profile: minimal
6158
toolchain: ${{ matrix.rust }}
62-
override: true
6359
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
6460
- run: rm ../Cargo.toml
6561
- run: cargo test

.github/workflows/hybrid-array.yml

+3-7
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,10 @@ jobs:
3232
steps:
3333
- uses: actions/checkout@v3
3434
- uses: RustCrypto/actions/cargo-cache@master
35-
- uses: actions-rs/toolchain@v1
35+
- uses: dtolnay/rust-toolchain@master
3636
with:
3737
toolchain: ${{ matrix.rust }}
38-
target: ${{ matrix.target }}
39-
override: true
40-
profile: minimal
38+
targets: ${{ matrix.target }}
4139
- run: cargo build --no-default-features --target ${{ matrix.target }}
4240

4341
minimal-versions:
@@ -55,10 +53,8 @@ jobs:
5553
steps:
5654
- uses: actions/checkout@v3
5755
- uses: RustCrypto/actions/cargo-cache@master
58-
- uses: actions-rs/toolchain@v1
56+
- uses: dtolnay/rust-toolchain@master
5957
with:
6058
toolchain: ${{ matrix.toolchain }}
61-
override: true
62-
profile: minimal
6359
- run: cargo test
6460
- run: cargo test --all-features

.github/workflows/inout.yml

+3-7
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,10 @@ jobs:
3030
steps:
3131
- uses: actions/checkout@v3
3232
- uses: RustCrypto/actions/cargo-cache@master
33-
- uses: actions-rs/toolchain@v1
33+
- uses: dtolnay/rust-toolchain@master
3434
with:
35-
profile: minimal
3635
toolchain: ${{ matrix.rust }}
37-
target: ${{ matrix.target }}
38-
override: true
36+
targets: ${{ matrix.target }}
3937
- run: cargo build --target ${{ matrix.target }}
4038
- run: cargo build --features block-padding --target ${{ matrix.target }}
4139

@@ -54,11 +52,9 @@ jobs:
5452
steps:
5553
- uses: actions/checkout@v3
5654
- uses: RustCrypto/actions/cargo-cache@master
57-
- uses: actions-rs/toolchain@v1
55+
- uses: dtolnay/rust-toolchain@master
5856
with:
59-
profile: minimal
6057
toolchain: ${{ matrix.rust }}
61-
override: true
6258
- run: cargo test
6359
- run: cargo test --features block-padding
6460
- run: cargo test --all-features

.github/workflows/opaque-debug.yml

+3-7
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,10 @@ jobs:
3030
steps:
3131
- uses: actions/checkout@v3
3232
- uses: RustCrypto/actions/cargo-cache@master
33-
- uses: actions-rs/toolchain@v1
33+
- uses: dtolnay/rust-toolchain@master
3434
with:
35-
profile: minimal
3635
toolchain: ${{ matrix.rust }}
37-
target: ${{ matrix.target }}
38-
override: true
36+
targets: ${{ matrix.target }}
3937
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
4038
- run: rm ../Cargo.toml
4139
- run: cargo build --target ${{ matrix.target }}
@@ -55,11 +53,9 @@ jobs:
5553
steps:
5654
- uses: actions/checkout@v3
5755
- uses: RustCrypto/actions/cargo-cache@master
58-
- uses: actions-rs/toolchain@v1
56+
- uses: dtolnay/rust-toolchain@master
5957
with:
60-
profile: minimal
6158
toolchain: ${{ matrix.rust }}
62-
override: true
6359
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
6460
- run: rm ../Cargo.toml
6561
- run: cargo test

.github/workflows/workspace.yml

+3-10
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,18 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v3
1717
- uses: RustCrypto/actions/cargo-cache@master
18-
- uses: actions-rs/toolchain@v1
18+
- uses: dtolnay/rust-toolchain@master
1919
with:
2020
toolchain: 1.67.0 # Pinned to prevent breakages
2121
components: clippy
22-
override: true
23-
profile: minimal
2422
- run: cargo clippy --all --all-features -- -D warnings
2523

2624
rustfmt:
2725
runs-on: ubuntu-latest
2826
steps:
2927
- uses: actions/checkout@v3
30-
- uses: actions-rs/toolchain@v1
28+
- uses: dtolnay/rust-toolchain@master
3129
with:
3230
toolchain: stable
3331
components: rustfmt
34-
profile: minimal
35-
override: true
36-
- uses: actions-rs/cargo@v1
37-
with:
38-
command: fmt
39-
args: --all -- --check
32+
- run: cargo fmt --all -- --check

.github/workflows/zeroize.yml

+6-12
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,10 @@ jobs:
3232
steps:
3333
- uses: actions/checkout@v3
3434
- uses: RustCrypto/actions/cargo-cache@master
35-
- uses: actions-rs/toolchain@v1
35+
- uses: dtolnay/rust-toolchain@master
3636
with:
3737
toolchain: ${{ matrix.rust }}
38-
target: ${{ matrix.target }}
39-
override: true
40-
profile: minimal
38+
targets: ${{ matrix.target }}
4139
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
4240
- run: rm ../Cargo.toml
4341
- run: cargo build --no-default-features --target ${{ matrix.target }}
@@ -89,12 +87,10 @@ jobs:
8987
steps:
9088
- uses: actions/checkout@v3
9189
- uses: RustCrypto/actions/cargo-cache@master
92-
- uses: actions-rs/toolchain@v1
90+
- uses: dtolnay/rust-toolchain@master
9391
with:
9492
toolchain: ${{ matrix.rust }}
95-
target: ${{ matrix.target }}
96-
profile: minimal
97-
override: true
93+
targets: ${{ matrix.target }}
9894
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
9995
- run: rm ../Cargo.toml
10096
- run: ${{ matrix.deps }}
@@ -115,12 +111,10 @@ jobs:
115111
- uses: actions/checkout@v3
116112
- uses: RustCrypto/actions/cargo-cache@master
117113
- run: ${{ matrix.deps }}
118-
- uses: actions-rs/toolchain@v1
114+
- uses: dtolnay/rust-toolchain@master
119115
with:
120116
toolchain: ${{ matrix.rust }}
121-
target: ${{ matrix.target }}
122-
profile: minimal
123-
override: true
117+
targets: ${{ matrix.target }}
124118
- uses: RustCrypto/actions/cross-install@master
125119
# Isolate this crate from workspace which is otherwise MSRV 1.56 due to 2021 edition crates
126120
- run: rm ../Cargo.toml

0 commit comments

Comments
 (0)