From f0d17337dfcf053449fbc57e30316768530d4656 Mon Sep 17 00:00:00 2001 From: Jake Shadle Date: Fri, 15 Nov 2024 11:21:01 +0100 Subject: [PATCH] Add MSRV check to CI (#721) Resolves: #720 --- .github/workflows/ci.yaml | 15 ++++++++++++++- Cargo.toml | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ce6df94b..18bb306a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -41,6 +41,19 @@ jobs: - name: cargo clippy run: cargo clippy --all-targets --all-features -- -D warnings + msrv: + name: MSRV check + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@master + with: + toolchain: 1.81.0 + components: "clippy" + - run: cargo fetch + - name: cargo clippy + run: cargo clippy --all-targets --all-features -- -D warnings + test: name: Test strategy: @@ -231,6 +244,6 @@ jobs: test_success: runs-on: ubuntu-22.04 - needs: [typos, lint, test, self, publish-check, doc-book] + needs: [typos, lint, test, self, publish-check, doc-book, msrv] steps: - run: echo "All test jobs passed" diff --git a/Cargo.toml b/Cargo.toml index 9ff0fda5..3700748e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ homepage = "https://github.com/EmbarkStudios/cargo-deny" categories = ["development-tools::cargo-plugins"] keywords = ["cargo", "license", "spdx", "ci", "advisories"] exclude = ["docs/", "examples/", ".github/", "tests"] -rust-version = "1.70.0" +rust-version = "1.81.0" [badges] maintenance = { status = "actively-developed" }