Skip to content

Commit

Permalink
Replace deprecated actions-rs/toolchain usage
Browse files Browse the repository at this point in the history
The actions-rs/toolchain GitHub action is no longer maintained. Switch
over to using dtolnay/rust-toolchain in its stead.
  • Loading branch information
d-e-s-o committed Jan 4, 2024
1 parent 7132633 commit 5e776af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2023 Daniel Mueller <[email protected]>
# Copyright (C) 2023-2024 Daniel Mueller <[email protected]>
# SPDX-License-Identifier: GPL-3.0-or-later

name: Publish
Expand Down Expand Up @@ -39,11 +39,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: dtolnay/rust-toolchain@stable
- name: Dry-run package creation
run: cargo package --no-verify
- name: Create git tag
Expand Down
16 changes: 4 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2022-2023 Daniel Mueller <[email protected]>
# Copyright (C) 2022-2024 Daniel Mueller <[email protected]>
# SPDX-License-Identifier: GPL-3.0-or-later

name: Test
Expand Down Expand Up @@ -30,7 +30,7 @@ jobs:
profile: [dev, release]
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
profile: minimal
Expand Down Expand Up @@ -59,11 +59,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: minimal
override: true
- uses: dtolnay/rust-toolchain@nightly
- run: |
echo '```' >> $GITHUB_STEP_SUMMARY
cargo bench --features=nightly --quiet -- bench_ >> $GITHUB_STEP_SUMMARY
Expand All @@ -73,11 +69,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
override: true
- uses: dtolnay/rust-toolchain@stable
- run: |
cargo clippy --no-deps --tests -- -A unknown_lints -D warnings
cargo clippy --no-deps --features=readline -- -A unknown_lints -D warnings

0 comments on commit 5e776af

Please sign in to comment.