From 21ab95013bd3e264ba33d5f131b7c3e6c9d2865f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20M=C3=BCller?= Date: Wed, 3 Jan 2024 18:00:04 -0800 Subject: [PATCH] Replace deprecated actions-rs/toolchain usage The actions-rs/toolchain GitHub action is no longer maintained. Switch over to using dtolnay/rust-toolchain in its stead. --- .github/workflows/publish.yml | 9 ++------- .github/workflows/test.yml | 16 ++++------------ 2 files changed, 6 insertions(+), 19 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b14d11ee4..4a23b6431 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,4 +1,4 @@ -# Copyright (C) 2023 Daniel Mueller +# Copyright (C) 2023-2024 Daniel Mueller # SPDX-License-Identifier: GPL-3.0-or-later name: Publish @@ -38,12 +38,7 @@ jobs: runs-on: ubuntu-latest 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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b0082af1e..b77975d16 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -# Copyright (C) 2022-2023 Daniel Mueller +# Copyright (C) 2022-2024 Daniel Mueller # SPDX-License-Identifier: GPL-3.0-or-later name: Test @@ -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 @@ -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 @@ -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