Skip to content

Commit cddce88

Browse files
authored
Replace unmaintained actions-rs/* actions in CI workflows (#1279)
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 03124bd commit cddce88

12 files changed

+44
-112
lines changed

.github/workflows/aead.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 check --all-features
4038
- run: cargo build --target ${{ matrix.target }} --release --no-default-features
4139
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features alloc
@@ -59,11 +57,9 @@ jobs:
5957
steps:
6058
- uses: actions/checkout@v3
6159
- uses: RustCrypto/actions/cargo-cache@master
62-
- uses: actions-rs/toolchain@v1
60+
- uses: dtolnay/rust-toolchain@master
6361
with:
6462
toolchain: ${{ matrix.rust }}
65-
override: true
66-
profile: minimal
6763
- run: cargo test --release --no-default-features
6864
- run: cargo test --release
6965
- run: cargo test --release --all-features

.github/workflows/async-signature.yml

+2-6
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:
3232
toolchain: ${{ matrix.rust }}
33-
override: true
34-
profile: minimal
3533
- run: cargo check --all-features
3634
- run: cargo test --release
3735
- run: cargo test --all-features --release
@@ -41,11 +39,9 @@ jobs:
4139
steps:
4240
- uses: actions/checkout@v3
4341
- uses: RustCrypto/actions/cargo-cache@master
44-
- uses: actions-rs/toolchain@v1
42+
- uses: dtolnay/rust-toolchain@master
4543
with:
4644
toolchain: nightly
47-
override: true
48-
profile: minimal
4945
- uses: RustCrypto/actions/cargo-hack-install@master
5046
- run: rm ../../Cargo.toml
5147
- run: cargo update -Z minimal-versions

.github/workflows/cipher.yml

+4-9
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:
3535
toolchain: ${{ matrix.rust }}
36-
target: ${{ matrix.target }}
37-
override: true
38-
profile: minimal
36+
targets: ${{ matrix.target }}
3937
- run: cargo build --target ${{ matrix.target }}
4038
- run: cargo build --target ${{ matrix.target }} --features rand_core
4139
- run: cargo build --target ${{ matrix.target }} --features block-padding
@@ -47,11 +45,9 @@ jobs:
4745
steps:
4846
- uses: actions/checkout@v3
4947
- uses: RustCrypto/actions/cargo-cache@master
50-
- uses: actions-rs/toolchain@v1
48+
- uses: dtolnay/rust-toolchain@master
5149
with:
5250
toolchain: nightly
53-
override: true
54-
profile: minimal
5551
- uses: RustCrypto/actions/cargo-hack-install@master
5652
- run: cargo update -Z minimal-versions
5753
- run: cargo hack test --release --feature-powerset
@@ -66,9 +62,8 @@ jobs:
6662
steps:
6763
- uses: actions/checkout@v3
6864
- uses: RustCrypto/actions/cargo-cache@master
69-
- uses: actions-rs/toolchain@v1
65+
- uses: dtolnay/rust-toolchain@master
7066
with:
71-
profile: minimal
7267
toolchain: ${{ matrix.rust }}
7368
- run: cargo check --all-features
7469
- run: cargo test

.github/workflows/crypto-common.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:
3535
toolchain: ${{ matrix.rust }}
36-
target: ${{ matrix.target }}
37-
override: true
38-
profile: minimal
36+
targets: ${{ matrix.target }}
3937
- run: cargo build --target ${{ matrix.target }}
4038

4139
minimal-versions:
@@ -53,11 +51,9 @@ 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:
5856
toolchain: ${{ matrix.rust }}
59-
override: true
60-
profile: minimal
6157
- run: cargo check --all-features
6258
- run: cargo test
6359
- run: cargo test --features std

.github/workflows/crypto.yml

+5-13
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:
3535
toolchain: ${{ matrix.rust }}
36-
target: ${{ matrix.target }}
37-
override: true
38-
profile: minimal
36+
targets: ${{ matrix.target }}
3937
- run: cargo build --no-default-features --release --target ${{ matrix.target }}
4038
- run: cargo build --no-default-features --release --target ${{ matrix.target }}
4139
--features aead,cipher,digest,elliptic-curve,signature,universal-hash
@@ -45,11 +43,9 @@ jobs:
4543
steps:
4644
- uses: actions/checkout@v3
4745
- uses: RustCrypto/actions/cargo-cache@master
48-
- uses: actions-rs/toolchain@v1
46+
- uses: dtolnay/rust-toolchain@master
4947
with:
5048
toolchain: nightly
51-
override: true
52-
profile: minimal
5349
- uses: RustCrypto/actions/cargo-hack-install@master
5450
- run: cargo update -Z minimal-versions
5551
- run: cargo hack test --release --feature-powerset
@@ -64,11 +60,9 @@ jobs:
6460
steps:
6561
- uses: actions/checkout@v3
6662
- uses: RustCrypto/actions/cargo-cache@master
67-
- uses: actions-rs/toolchain@v1
63+
- uses: dtolnay/rust-toolchain@master
6864
with:
6965
toolchain: ${{ matrix.rust }}
70-
override: true
71-
profile: minimal
7266
- run: cargo check --all-features
7367
- run: cargo test --no-default-features --release
7468
- run: cargo test --release
@@ -79,10 +73,8 @@ jobs:
7973
steps:
8074
- uses: actions/checkout@v3
8175
- uses: RustCrypto/actions/cargo-cache@master
82-
- uses: actions-rs/toolchain@v1
76+
- uses: dtolnay/rust-toolchain@master
8377
with:
8478
toolchain: 1.60.0
8579
components: clippy
86-
override: true
87-
profile: minimal
8880
- run: cargo clippy --all --all-features -- -D warnings

.github/workflows/digest.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:
3535
toolchain: ${{ matrix.rust }}
36-
target: ${{ matrix.target }}
37-
override: true
38-
profile: minimal
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:
6058
toolchain: ${{ matrix.rust }}
61-
override: true
62-
profile: minimal
6359
- run: cargo check --all-features
6460
- run: cargo test --no-default-features
6561
- run: cargo test

.github/workflows/elliptic-curve.yml

+5-13
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:
37-
profile: minimal
3837
toolchain: ${{ matrix.rust }}
39-
target: ${{ matrix.target }}
40-
override: true
38+
targets: ${{ matrix.target }}
4139
- run: cargo build --target ${{ matrix.target }} --release --no-default-features
4240
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features alloc
4341
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features arithmetic
@@ -65,11 +63,9 @@ jobs:
6563
# steps:
6664
# - uses: actions/checkout@v3
6765
# - uses: RustCrypto/actions/cargo-cache@master
68-
# - uses: actions-rs/toolchain@v1
66+
# - uses: dtolnay/rust-toolchain@master
6967
# with:
7068
# toolchain: nightly
71-
# override: true
72-
# profile: minimal
7369
# - uses: RustCrypto/actions/cargo-hack-install@master
7470
# - run: cargo update -Z minimal-versions
7571
# - run: cargo hack test --release --feature-powerset
@@ -85,11 +81,9 @@ jobs:
8581
steps:
8682
- uses: actions/checkout@v3
8783
- uses: RustCrypto/actions/cargo-cache@master
88-
- uses: actions-rs/toolchain@v1
84+
- uses: dtolnay/rust-toolchain@master
8985
with:
9086
toolchain: ${{ matrix.rust }}
91-
override: true
92-
profile: minimal
9387
- run: cargo check --all-features
9488
- run: cargo test --no-default-features
9589
- run: cargo test
@@ -99,9 +93,7 @@ jobs:
9993
runs-on: ubuntu-latest
10094
steps:
10195
- uses: actions/checkout@v3
102-
- uses: actions-rs/toolchain@v1
96+
- uses: dtolnay/rust-toolchain@master
10397
with:
10498
toolchain: stable
105-
override: true
106-
profile: minimal
10799
- run: cargo doc --all-features

.github/workflows/kem.yml

+4-10
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:
3535
toolchain: ${{ matrix.rust }}
36-
target: ${{ matrix.target }}
37-
override: true
38-
profile: minimal
36+
targets: ${{ matrix.target }}
3937
- run: cargo build --no-default-features --release --target ${{ matrix.target }}
4038

4139
# TODO: use the reusable workflow after this crate will be part of the
@@ -45,11 +43,9 @@ jobs:
4543
# steps:
4644
# - uses: actions/checkout@v3
4745
# - uses: RustCrypto/actions/cargo-cache@master
48-
# - uses: actions-rs/toolchain@v1
46+
# - uses: dtolnay/rust-toolchain@master
4947
# with:
5048
# toolchain: nightly
51-
# override: true
52-
# profile: minimal
5349
# - uses: RustCrypto/actions/cargo-hack-install@master
5450
# - run: cargo update -Z minimal-versions
5551
# - run: cargo hack test --release --feature-powerset
@@ -64,11 +60,9 @@ jobs:
6460
steps:
6561
- uses: actions/checkout@v3
6662
- uses: RustCrypto/actions/cargo-cache@master
67-
- uses: actions-rs/toolchain@v1
63+
- uses: dtolnay/rust-toolchain@master
6864
with:
6965
toolchain: ${{ matrix.rust }}
70-
override: true
71-
profile: minimal
7266
- run: cargo check --all-features
7367
- run: cargo test --no-default-features --release
7468
- run: cargo test --release

.github/workflows/password-hash.yml

+4-10
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:
3535
toolchain: ${{ matrix.rust }}
36-
target: ${{ matrix.target }}
37-
override: true
38-
profile: minimal
36+
targets: ${{ matrix.target }}
3937
- run: cargo build --target ${{ matrix.target }} --release --no-default-features
4038
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features alloc
4139
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features rand_core
@@ -47,11 +45,9 @@ jobs:
4745
steps:
4846
- uses: actions/checkout@v3
4947
- uses: RustCrypto/actions/cargo-cache@master
50-
- uses: actions-rs/toolchain@v1
48+
- uses: dtolnay/rust-toolchain@master
5149
with:
5250
toolchain: nightly
53-
override: true
54-
profile: minimal
5551
- uses: RustCrypto/actions/cargo-hack-install@master
5652
- run: cargo update -Z minimal-versions
5753
- run: cargo hack test --release --feature-powerset
@@ -66,11 +62,9 @@ jobs:
6662
steps:
6763
- uses: actions/checkout@v3
6864
- uses: RustCrypto/actions/cargo-cache@master
69-
- uses: actions-rs/toolchain@v1
65+
- uses: dtolnay/rust-toolchain@master
7066
with:
7167
toolchain: ${{ matrix.rust }}
72-
override: true
73-
profile: minimal
7468
- run: cargo check --all-features
7569
- run: cargo test --release --no-default-features
7670
- run: cargo test --release

.github/workflows/signature.yml

+5-13
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,10 @@ jobs:
3131
steps:
3232
- uses: actions/checkout@v3
3333
- uses: RustCrypto/actions/cargo-cache@master
34-
- uses: actions-rs/toolchain@v1
34+
- uses: dtolnay/rust-toolchain@master
3535
with:
3636
toolchain: ${{ matrix.rust }}
37-
target: ${{ matrix.target }}
38-
override: true
39-
profile: minimal
37+
targets: ${{ matrix.target }}
4038
- run: cargo build --target ${{ matrix.target }} --release --no-default-features
4139
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features derive
4240
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features digest
@@ -58,11 +56,9 @@ jobs:
5856
steps:
5957
- uses: actions/checkout@v3
6058
- uses: RustCrypto/actions/cargo-cache@master
61-
- uses: actions-rs/toolchain@v1
59+
- uses: dtolnay/rust-toolchain@master
6260
with:
6361
toolchain: ${{ matrix.rust }}
64-
override: true
65-
profile: minimal
6662
- run: cargo check --all-features
6763
- run: cargo test --no-default-features --release
6864
- run: cargo test --release
@@ -78,21 +74,17 @@ jobs:
7874
steps:
7975
- uses: actions/checkout@v3
8076
- uses: RustCrypto/actions/cargo-cache@master
81-
- uses: actions-rs/toolchain@v1
77+
- uses: dtolnay/rust-toolchain@master
8278
with:
8379
toolchain: ${{ matrix.rust }}
84-
override: true
85-
profile: minimal
8680
- run: cargo test --release
8781
working-directory: signature/derive
8882

8983
doc:
9084
runs-on: ubuntu-latest
9185
steps:
9286
- uses: actions/checkout@v3
93-
- uses: actions-rs/toolchain@v1
87+
- uses: dtolnay/rust-toolchain@master
9488
with:
9589
toolchain: stable
96-
override: true
97-
profile: minimal
9890
- run: cargo doc --all-features

0 commit comments

Comments
 (0)