Skip to content

Commit c700d2f

Browse files
striezelRalith
authored andcommitted
Replace unmaintained actions-rs/* actions in CI workflows
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 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 6bb36a2 commit c700d2f

File tree

2 files changed

+11
-44
lines changed

2 files changed

+11
-44
lines changed

.github/workflows/codecov.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v3
12-
- uses: actions-rs/toolchain@v1
13-
with:
14-
profile: minimal
15-
toolchain: stable
16-
override: true
12+
- uses: dtolnay/rust-toolchain@stable
1713
- uses: taiki-e/install-action@cargo-llvm-cov
1814
- run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
1915
- name: Upload coverage to Codecov

.github/workflows/rust.yml

Lines changed: 10 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -45,64 +45,35 @@ jobs:
4545

4646
steps:
4747
- uses: actions/checkout@v3
48-
- uses: actions-rs/toolchain@v1
48+
- uses: dtolnay/rust-toolchain@master
4949
with:
50-
profile: minimal
5150
toolchain: ${{ matrix.rust }}
52-
override: true
5351
- uses: Swatinem/rust-cache@v1
54-
- uses: actions-rs/cargo@v1
55-
with:
56-
command: build
57-
args: --all-targets
58-
- uses: actions-rs/cargo@v1
59-
with:
60-
command: test
61-
- uses: actions-rs/cargo@v1
52+
- run: cargo build --all-targets
53+
- run: cargo test
54+
- run: cargo test --manifest-path fuzz/Cargo.toml
6255
if: ${{ matrix.rust }} == "stable"
63-
with:
64-
command: test
65-
args: --manifest-path fuzz/Cargo.toml
6656

6757
msrv:
6858
runs-on: ubuntu-latest
6959
steps:
7060
- uses: actions/checkout@v3
71-
- uses: actions-rs/toolchain@v1
72-
with:
73-
profile: minimal
74-
toolchain: 1.63.0
75-
override: true
61+
- uses: dtolnay/[email protected]
7662
- uses: Swatinem/rust-cache@v1
77-
- uses: actions-rs/cargo@v1
78-
with:
79-
command: check
80-
args: --lib --all-features -p quinn-udp -p quinn-proto -p quinn
63+
- run: cargo check --lib --all-features -p quinn-udp -p quinn-proto -p quinn
8164

8265
lint:
8366
runs-on: ubuntu-latest
8467
steps:
8568
- uses: actions/checkout@v3
86-
- uses: actions-rs/toolchain@v1
69+
- uses: dtolnay/rust-toolchain@stable
8770
with:
88-
profile: minimal
89-
toolchain: stable
90-
override: true
9171
components: rustfmt, clippy
9272
- uses: Swatinem/rust-cache@v1
93-
- uses: actions-rs/cargo@v1
94-
with:
95-
command: fmt
96-
args: --all -- --check
97-
- uses: actions-rs/cargo@v1
98-
with:
99-
command: clippy
100-
args: --all-targets -- -D warnings
101-
- uses: actions-rs/toolchain@v1
73+
- run: cargo fmt --all -- --check
74+
- run: cargo clippy --all-targets -- -D warnings
75+
- uses: dtolnay/rust-toolchain@stable
10276
with:
103-
profile: minimal
104-
toolchain: stable
105-
override: true
10677
components: clippy
10778
- name: doc
10879
run: cargo doc --no-deps --document-private-items

0 commit comments

Comments
 (0)