Skip to content

Commit

Permalink
Replace unmaintained actions-rs/* actions in CI workflows
Browse files Browse the repository at this point in the history
Basically all of the `actions-rs/*` actions are unmaintained. See
<actions-rs/toolchain#216> for more
information. Due to their age they generate several warnings in
CI runs.

To get rid of those warnings the occurrences of
`actions-rs/toolchain` are replaced by `dtolnay/rust-toolchain`,
and the occurrences of `actions-rs/cargo` are replaced by direct
invocations of `cargo`.
  • Loading branch information
striezel authored and nical committed Apr 23, 2023
1 parent af03a93 commit a6e9fc9
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,13 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- uses: Swatinem/rust-cache@v1

- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --all --verbose --all-features
run: cargo test --all --verbose --all-features

wasm:
env:
Expand All @@ -41,12 +36,10 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: nightly
override: true
target: "wasm32-unknown-unknown"
targets: "wasm32-unknown-unknown"
- uses: Swatinem/rust-cache@v1

- name: Use Node.js
Expand Down

0 comments on commit a6e9fc9

Please sign in to comment.