From ed9e0c13f134abed81225ec24f15d9cca996378f Mon Sep 17 00:00:00 2001 From: Jan Niehusmann Date: Tue, 28 Feb 2023 20:16:53 +0000 Subject: [PATCH] Use github action dtolnay/rust-toolchain@master instead of actions-rs/toolchain@v1 actions-rs/toolchain@v1 uses deprecated features and has not been updated for years --- .github/workflows/clippy.yml | 4 +--- .github/workflows/rustfmt.yml | 4 +--- .github/workflows/test.yml | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml index 19c7acbac..2dd5c88bc 100644 --- a/.github/workflows/clippy.yml +++ b/.github/workflows/clippy.yml @@ -9,12 +9,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: - profile: minimal # embedded-hal-async needs nightly. # Use a pinned version to avoid spontaneous breakages (new clippy lints are added often) toolchain: nightly-2022-11-22 - override: true components: clippy - run: cargo clippy -- --deny=warnings \ No newline at end of file diff --git a/.github/workflows/rustfmt.yml b/.github/workflows/rustfmt.yml index 7ffd30a99..ba2ea006f 100644 --- a/.github/workflows/rustfmt.yml +++ b/.github/workflows/rustfmt.yml @@ -10,10 +10,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: - profile: minimal toolchain: nightly - override: true components: rustfmt - run: cargo fmt --check diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d7ce3402d..7b1242ea3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,12 +27,10 @@ jobs: steps: - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: - profile: minimal toolchain: ${{ matrix.rust }} target: ${{ matrix.target }} - override: true - run: sed -i '/nightly-only/d' Cargo.toml if: matrix.rust != 'nightly'