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 Jul 22, 2024
1 parent 45179a0 commit 271fc32
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 21 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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:
Expand Down
19 changes: 5 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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"
Expand All @@ -58,29 +56,22 @@ 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:
name: Lint with clippy
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

0 comments on commit 271fc32

Please sign in to comment.