From eebf779083ff7a52235e7fc0c19f897b542801ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20M=C3=BCller?= Date: Mon, 19 Feb 2024 16:16:44 -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 | 19 +++++-------------- 2 files changed, 7 insertions(+), 21 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9981678..b7c20ac 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,4 +1,4 @@ -# Copyright (C) 2023 The cargo-http-registry Developers +# Copyright (C) 2023-2024 The cargo-http-registry Developers # SPDX-License-Identifier: GPL-3.0-or-later name: Publish @@ -15,12 +15,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: Publish run: cargo publish --no-verify --token "${CARGO_REGISTRY_TOKEN}" env: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bc3f299..dc7573a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -# Copyright (C) 2022-2023 The cargo-http-registry Developers +# Copyright (C) 2022-2024 The cargo-http-registry Developers # SPDX-License-Identifier: GPL-3.0-or-later name: Test @@ -41,11 +41,9 @@ jobs: runs-on: ${{ matrix.runs-on }} steps: - uses: actions/checkout@v4 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.rust }} - profile: minimal - override: true - name: Build & test ${{ matrix.profile }} run: | git config --global user.name = "deso" @@ -58,19 +56,14 @@ jobs: steps: - uses: actions/checkout@v4 - name: Install Nightly Rust - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: nightly + uses: dtolnay/rust-toolchain@nightly - run: cargo +nightly -Z minimal-versions update - name: Install minimum Rust - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: - profile: minimal # Please adjust README and rust-version field in Cargo.toml files when # bumping version. toolchain: 1.63.0 - default: true - name: Build run: cargo build --locked clippy: @@ -78,9 +71,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@stable with: toolchain: stable - components: clippy - override: true - run: cargo clippy --no-deps --all-targets -- -A unknown_lints -A deprecated -D warnings