Skip to content

Commit 1c7cbc6

Browse files
committed
ci(.github): replace unmaintained actions-rs action
Signed-off-by: Vaughn Dice <[email protected]>
1 parent 39efd1f commit 1c7cbc6

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

.github/workflows/release.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,15 @@ jobs:
8989
steps:
9090
- uses: actions/checkout@v3
9191
- name: Install latest Rust stable toolchain
92-
uses: actions-rs/toolchain@v1
93-
with:
94-
toolchain: stable
95-
default: true
96-
target: ${{ matrix.config.target }}
92+
shell: bash
93+
run: |
94+
rustup toolchain install stable
95+
rustup default stable
96+
97+
- name: Install target
98+
if: matrix.config.target != ''
99+
shell: bash
100+
run: rustup target add --toolchain stable ${{ matrix.config.target }}
97101

98102
- name: set the release version (main)
99103
shell: bash

.github/workflows/test.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,10 @@ jobs:
2121
steps:
2222
- uses: actions/checkout@v3
2323
- name: Install latest Rust stable toolchain
24-
uses: actions-rs/toolchain@v1
25-
with:
26-
toolchain: stable
27-
default: true
28-
components: clippy, rustfmt
24+
shell: bash
25+
run: |
26+
rustup toolchain install stable --component clippy --component rustfmt
27+
rustup default stable
2928
3029
- uses: Swatinem/rust-cache@v2
3130
with:

0 commit comments

Comments
 (0)