Skip to content

Commit 8765246

Browse files
authored
Merge pull request #195 from fermyon/ci/replace-actions-rs
ci(.github): replace unmaintained actions-rs action
2 parents b63fdfd + 1c7cbc6 commit 8765246

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
@@ -91,11 +91,15 @@ jobs:
9191
steps:
9292
- uses: actions/checkout@v3
9393
- name: Install latest Rust stable toolchain
94-
uses: actions-rs/toolchain@v1
95-
with:
96-
toolchain: stable
97-
default: true
98-
target: ${{ matrix.config.target }}
94+
shell: bash
95+
run: |
96+
rustup toolchain install stable
97+
rustup default stable
98+
99+
- name: Install target
100+
if: matrix.config.target != ''
101+
shell: bash
102+
run: rustup target add --toolchain stable ${{ matrix.config.target }}
99103

100104
- name: set the release version (main)
101105
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)