Skip to content

Commit f11e49e

Browse files
authored
CI: replace actions-rs with dtolnay
1 parent 03b5a84 commit f11e49e

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
@@ -36,11 +36,10 @@ jobs:
3636
target: "thumbv6m-none-eabi"
3737
steps:
3838
- uses: actions/checkout@v3
39-
- uses: actions-rs/toolchain@v1.0.7
39+
- uses: dtolnay/rust-toolchain@master
4040
with:
4141
toolchain: ${{ matrix.toolchain }}
4242
target: ${{ matrix.target }}
43-
default: true
4443

4544
- name: Build HAL
4645
run: |
@@ -77,9 +76,8 @@ jobs:
7776
DEFMT_LOG: "debug"
7877
steps:
7978
- uses: actions/checkout@v3
80-
- uses: actions-rs/toolchain@v1.0.7
79+
- uses: dtolnay/rust-toolchain@stable
8180
with:
82-
toolchain: stable
8381
target: thumbv7em-none-eabi
8482
- run: |
8583
cargo test -p testsuite --target thumbv7em-none-eabi --bins --locked --no-run
@@ -136,9 +134,7 @@ jobs:
136134
- "stm32wle5"
137135
steps:
138136
- uses: actions/checkout@v3
139-
- uses: actions-rs/[email protected]
140-
with:
141-
toolchain: stable
137+
- uses: dtolnay/rust-toolchain@stable
142138

143139
- name: Test HAL
144140
run: cargo test --features ${{ matrix.mcu }},embedded-time,chrono
@@ -157,9 +153,8 @@ jobs:
157153
runs-on: ubuntu-latest
158154
steps:
159155
- uses: actions/checkout@v3
160-
- uses: actions-rs/toolchain@v1.0.7
156+
- uses: dtolnay/rust-toolchain@stable
161157
with:
162-
toolchain: stable
163158
components: clippy
164159
# not using clippy-check due to this issue:
165160
# https://github.com/actions-rs/clippy-check/issues/2
@@ -171,9 +166,8 @@ jobs:
171166
env: {"RUSTFLAGS": "-D warnings"}
172167
steps:
173168
- uses: actions/checkout@v3
174-
- uses: actions-rs/toolchain@v1.0.7
169+
- uses: dtolnay/rust-toolchain@nightly
175170
with:
176-
toolchain: nightly
177171
components: rustfmt
178172
- run: cargo +nightly fmt -- --check
179173

@@ -183,9 +177,7 @@ jobs:
183177
env: {"RUSTDOCFLAGS": "-D warnings"}
184178
steps:
185179
- uses: actions/checkout@v3
186-
- uses: actions-rs/[email protected]
187-
with:
188-
toolchain: stable
180+
- uses: dtolnay/rust-toolchain@stable
189181
# not run in parallel to avoid hitting concurrency limit
190182
# stm32wl5x_cm4 covered by rustdoc
191183
- run: cargo doc --features stm32wl5x_cm0p
@@ -197,9 +189,7 @@ jobs:
197189
env: {"RUSTDOCFLAGS": "-D warnings --cfg docsrs"}
198190
steps:
199191
- uses: actions/checkout@v3
200-
- uses: actions-rs/toolchain@v1
201-
with:
202-
toolchain: nightly
192+
- uses: dtolnay/rust-toolchain@nightly
203193
- name: rustdoc
204194
run: |
205195
cd hal
@@ -228,9 +218,7 @@ jobs:
228218
runs-on: ubuntu-latest
229219
steps:
230220
- uses: actions/checkout@v3
231-
- uses: actions-rs/[email protected]
232-
with:
233-
toolchain: stable
221+
- uses: dtolnay/rust-toolchain@stable
234222
- name: Release stm32wlxx-hal
235223
run: |
236224
cd hal

0 commit comments

Comments
 (0)