Skip to content

Commit 3c22a6d

Browse files
committed
ci: replace actions-rs/toolchain with dtolnay/rust-toolchain
Signed-off-by: Martin Kröning <martin.kroening@eonerc.rwth-aachen.de>
1 parent 62ffa3f commit 3c22a6d

File tree

1 file changed

+7
-22
lines changed

1 file changed

+7
-22
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,9 @@ jobs:
2727
runs-on: ubuntu-latest
2828
steps:
2929
- uses: actions/checkout@v4
30-
- uses: actions-rs/toolchain@v1
30+
- uses: dtolnay/rust-toolchain@master
3131
with:
32-
profile: minimal
3332
toolchain: ${{ matrix.rust }}
34-
override: true
3533
- name: Run cargo build for stable
3634
uses: actions-rs/cargo@v1
3735
with:
@@ -76,12 +74,9 @@ jobs:
7674

7775
steps:
7876
- uses: actions/checkout@v4
79-
- uses: actions-rs/toolchain@v1
77+
- uses: dtolnay/rust-toolchain@nightly
8078
with:
81-
profile: minimal
82-
toolchain: nightly
83-
override: true
84-
target: x86_64-unknown-linux-musl
79+
targets: x86_64-unknown-linux-musl
8580

8681
- name: "Print Rust Version"
8782
run: |
@@ -151,13 +146,9 @@ jobs:
151146
run: echo "$GITHUB_WORKSPACE/binaries/bin" >> $GITHUB_PATH
152147
shell: bash
153148

154-
- name: "Install Rustup Components"
155-
uses: actions-rs/toolchain@v1
149+
- uses: dtolnay/rust-toolchain@nightly
156150
with:
157-
toolchain: nightly
158-
override: true
159-
profile: minimal
160-
components: rust-src, llvm-tools-preview
151+
components: rust-src, llvm-tools
161152
- name: "Install cargo-xbuild"
162153
run: cargo install cargo-xbuild --debug --root binaries
163154
- name: "Install bootimage"
@@ -197,11 +188,8 @@ jobs:
197188
timeout-minutes: 2
198189
steps:
199190
- uses: actions/checkout@v4
200-
- uses: actions-rs/toolchain@v1
191+
- uses: dtolnay/rust-toolchain@nightly
201192
with:
202-
toolchain: nightly
203-
override: true
204-
profile: minimal
205193
components: rustfmt
206194
- uses: actions-rs/cargo@v1
207195
with:
@@ -214,11 +202,8 @@ jobs:
214202
timeout-minutes: 10
215203
steps:
216204
- uses: actions/checkout@v4
217-
- uses: actions-rs/toolchain@v1
205+
- uses: dtolnay/rust-toolchain@nightly
218206
with:
219-
toolchain: nightly
220-
override: true
221-
profile: minimal
222207
components: clippy
223208
- uses: actions-rs/cargo@v1
224209
with:

0 commit comments

Comments
 (0)