Skip to content

Commit d430bec

Browse files
committed
ci: replace unmaintained actions-rs/toolchain@v1
1 parent 37b0956 commit d430bec

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/_build-rust.yml

+9-8
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,15 @@ jobs:
6262
steps:
6363
- name: Check out
6464
uses: actions/checkout@v4
65-
- name: Install Rust toolchain
66-
uses: actions-rs/toolchain@v1
67-
with:
68-
profile: minimal
69-
toolchain: ${{ inputs.rust-version }}
70-
override: true
71-
components: clippy, rustfmt
72-
target: ${{ inputs.rust-target }}
65+
- name: Setup Rust toolchain
66+
run: |
67+
rustup toolchain install ${{ inputs.rust-version }} \
68+
--profile minimal \
69+
--component clippy rustfmt \
70+
--target ${{ inputs.rust-target }} \
71+
--no-self-update
72+
--force
73+
rustup override set ${{ inputs.rust-version }}
7374
- name: Set up cargo cache
7475
uses: actions/cache@v3
7576
continue-on-error: false

0 commit comments

Comments
 (0)