From ab2ee3e0ad2f9748a336a7441d2e2ebb6cdbd731 Mon Sep 17 00:00:00 2001 From: Emanuele Aina Date: Thu, 8 Feb 2024 11:46:05 +0100 Subject: [PATCH] ci: Prevent dependabot from messing with our MSRV When using `dtolnay/rust-toolchain@1.70` dependabot helpfully tries to update it to the latest tag, but we really want to stick to 1.70 in that case since it is our Minimum Supported Rust Version, to match what it is being currently shipped in Debian testing. Signed-off-by: Emanuele Aina --- .github/workflows/ci.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eb09a4a..c27091a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@1.70 + - uses: dtolnay/rust-toolchain@master # avoid the tag here to prevent dependabot from updating it + with: + toolchain: "1.70" - run: cargo check --all-targets --all-features fmt: @@ -24,8 +26,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@1.70 + - uses: dtolnay/rust-toolchain@master # avoid the tag here to prevent dependabot from updating it with: + toolchain: "1.70" components: rustfmt - run: cargo fmt --all --check @@ -34,7 +37,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@1.70 + - uses: dtolnay/rust-toolchain@master # avoid the tag here to prevent dependabot from updating it + with: + toolchain: "1.70" - run: cargo test --all-targets --all-features clippy: @@ -42,8 +47,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@1.70 + - uses: dtolnay/rust-toolchain@master # avoid the tag here to prevent dependabot from updating it with: + toolchain: "1.70" components: clippy - run: cargo clippy --all-targets --all-features -- -D warnings