Skip to content

Commit aed5fe7

Browse files
committed
fix: pin dtolnay/rust-toolchain sha
1 parent 5712c82 commit aed5fe7

1 file changed

Lines changed: 8 additions & 15 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ jobs:
4848
- uses: actions/checkout@v6
4949

5050
- 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
5255

5356
- name: Cache Cargo
5457
uses: Swatinem/rust-cache@v2
@@ -149,9 +152,7 @@ jobs:
149152
path: .
150153

151154
- name: Setup Rust
152-
run: |
153-
rustup toolchain install stable --profile minimal
154-
rustup default stable
155+
uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8
155156

156157
- name: Cache Cargo
157158
uses: Swatinem/rust-cache@v2
@@ -230,9 +231,7 @@ jobs:
230231
path: .
231232

232233
- name: Setup Rust
233-
run: |
234-
rustup toolchain install stable --profile minimal
235-
rustup default stable
234+
uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8
236235

237236
- name: Cache Cargo
238237
uses: Swatinem/rust-cache@v2
@@ -287,10 +286,7 @@ jobs:
287286
steps:
288287
- uses: actions/checkout@v6
289288

290-
- name: Setup Rust
291-
run: |
292-
rustup toolchain install stable --profile minimal
293-
rustup default stable
289+
- uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8
294290

295291
- run: rm LICENSE.txt
296292
- name: Download LICENSE.txt
@@ -372,10 +368,7 @@ jobs:
372368
steps:
373369
- uses: actions/checkout@v6
374370

375-
- name: Setup Rust
376-
run: |
377-
rustup toolchain install stable --profile minimal
378-
rustup default stable
371+
- uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8
379372

380373
- run: rm LICENSE.txt
381374
- name: Download LICENSE.txt

0 commit comments

Comments
 (0)