Skip to content

Commit 356f736

Browse files
committed
ci: replace actions-rs with dtolnay/rust-toolchain.
The former is not maintained, and produces warnings in GitHub Actions due to node-js deprecations. The latter is used by the other Rustls ecosystems projects and actively maintained.
1 parent 9a7d773 commit 356f736

File tree

1 file changed

+8
-20
lines changed

1 file changed

+8
-20
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,13 @@ jobs:
3030
- uses: actions/checkout@v3
3131
with:
3232
persist-credentials: false
33-
- uses: actions-rs/toolchain@v1
33+
- uses: dtolnay/rust-toolchain@master
3434
with:
35-
profile: minimal
3635
toolchain: ${{ matrix.rust }}
3736
components: clippy
3837

3938
- name: Clippy (${{ matrix.os }})
40-
uses: actions-rs/cargo@v1
41-
with:
42-
command: clippy-ci
39+
run: cargo clippy-ci
4340

4441
- name: Clippy (Android)
4542
if: matrix.os == 'ubuntu-latest'
@@ -74,15 +71,11 @@ jobs:
7471
- uses: actions/checkout@v3
7572
with:
7673
persist-credentials: false
77-
- uses: actions-rs/toolchain@v1
78-
with:
79-
profile: minimal
80-
toolchain: stable
81-
74+
75+
- uses: dtolnay/rust-toolchain@stable
76+
8277
- name: Test (${{ matrix.os }})
83-
uses: actions-rs/cargo@v1
84-
with:
85-
command: test
78+
run: cargo test
8679

8780
- name: Setup Android test environment
8881
uses: actions/setup-java@v2
@@ -137,15 +130,10 @@ jobs:
137130
- uses: actions/checkout@v3
138131
with:
139132
persist-credentials: false
140-
- uses: actions-rs/toolchain@v1
133+
- uses: dtolnay/rust-toolchain@stable
141134
with:
142-
profile: minimal
143-
toolchain: stable
144135
components: rustfmt
145-
- uses: actions-rs/cargo@v1
146-
with:
147-
command: fmt
148-
args: --all -- --check
136+
- run: cargo fmt --all -- --check
149137

150138
android_fmt:
151139
name: Ktlint

0 commit comments

Comments
 (0)