Skip to content

Commit fbfe97a

Browse files
committed
review: remove deprecated actions-rs
1 parent ccb58b3 commit fbfe97a

File tree

2 files changed

+10
-19
lines changed

2 files changed

+10
-19
lines changed

.github/workflows/fmt-and-lint.yml

+7-13
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,9 @@ jobs:
1818
uses: actions/checkout@v4
1919

2020
- name: Install Rust toolchain
21-
uses: actions-rs/toolchain@v1
22-
with:
23-
components: clippy, rustfmt
24-
override: true
25-
profile: minimal
26-
toolchain: nightly-2023-06-01
21+
run: |
22+
rustup toolchain install nightly-2023-06-01 --no-self-update --profile minimal --component clippy rustfmt
23+
rustup default nightly-2023-06-01
2724
2825
- name: Cargo cache
2926
uses: ./.github/actions/cargo-cache
@@ -45,13 +42,10 @@ jobs:
4542
uses: actions/checkout@v4
4643

4744
- name: Install Rust toolchain
48-
uses: actions-rs/toolchain@v1
49-
with:
50-
components: clippy
51-
override: true
52-
profile: minimal
53-
toolchain: nightly-2023-06-01
54-
target: wasm32-unknown-unknown
45+
run: |
46+
rustup toolchain install nightly-2023-06-01 --no-self-update --profile=minimal --component clippy
47+
rustup default nightly-2023-06-01
48+
rustup target add wasm32-unknown-unknown
5549
5650
- name: Cargo cache
5751
uses: ./.github/actions/cargo-cache

.github/workflows/test.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,9 @@ jobs:
2121
uses: actions/checkout@v4
2222

2323
- name: Install Rust toolchain
24-
uses: actions-rs/toolchain@v1
25-
with:
26-
components: clippy, rustfmt
27-
override: true
28-
profile: minimal
29-
toolchain: nightly-2023-06-01
24+
run: |
25+
rustup toolchain install nightly-2023-06-01 --no-self-update --profile minimal
26+
rustup default nightly-2023-06-01
3027
3128
- name: Cargo cache
3229
uses: ./.github/actions/cargo-cache

0 commit comments

Comments
 (0)