|
48 | 48 | - uses: actions/checkout@v6 |
49 | 49 |
|
50 | 50 | - name: Setup Rust |
51 | | - run: rustup toolchain install nightly --profile minimal --component rustfmt |
| 51 | + uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 |
| 52 | + with: |
| 53 | + toolchain: "nightly" |
| 54 | + components: rustfmt |
52 | 55 |
|
53 | 56 | - name: Cache Cargo |
54 | 57 | uses: Swatinem/rust-cache@v2 |
@@ -149,9 +152,7 @@ jobs: |
149 | 152 | path: . |
150 | 153 |
|
151 | 154 | - name: Setup Rust |
152 | | - run: | |
153 | | - rustup toolchain install stable --profile minimal |
154 | | - rustup default stable |
| 155 | + uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 |
155 | 156 |
|
156 | 157 | - name: Cache Cargo |
157 | 158 | uses: Swatinem/rust-cache@v2 |
@@ -230,9 +231,7 @@ jobs: |
230 | 231 | path: . |
231 | 232 |
|
232 | 233 | - name: Setup Rust |
233 | | - run: | |
234 | | - rustup toolchain install stable --profile minimal |
235 | | - rustup default stable |
| 234 | + uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 |
236 | 235 |
|
237 | 236 | - name: Cache Cargo |
238 | 237 | uses: Swatinem/rust-cache@v2 |
@@ -287,10 +286,7 @@ jobs: |
287 | 286 | steps: |
288 | 287 | - uses: actions/checkout@v6 |
289 | 288 |
|
290 | | - - name: Setup Rust |
291 | | - run: | |
292 | | - rustup toolchain install stable --profile minimal |
293 | | - rustup default stable |
| 289 | + - uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 |
294 | 290 |
|
295 | 291 | - run: rm LICENSE.txt |
296 | 292 | - name: Download LICENSE.txt |
@@ -372,10 +368,7 @@ jobs: |
372 | 368 | steps: |
373 | 369 | - uses: actions/checkout@v6 |
374 | 370 |
|
375 | | - - name: Setup Rust |
376 | | - run: | |
377 | | - rustup toolchain install stable --profile minimal |
378 | | - rustup default stable |
| 371 | + - uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 |
379 | 372 |
|
380 | 373 | - run: rm LICENSE.txt |
381 | 374 | - name: Download LICENSE.txt |
|
0 commit comments