Skip to content

Commit f0d1733

Browse files
authored
Add MSRV check to CI (#721)
Resolves: #720
1 parent 13140f7 commit f0d1733

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

.github/workflows/ci.yaml

+14-1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,19 @@ jobs:
4141
- name: cargo clippy
4242
run: cargo clippy --all-targets --all-features -- -D warnings
4343

44+
msrv:
45+
name: MSRV check
46+
runs-on: ubuntu-22.04
47+
steps:
48+
- uses: actions/checkout@v4
49+
- uses: dtolnay/rust-toolchain@master
50+
with:
51+
toolchain: 1.81.0
52+
components: "clippy"
53+
- run: cargo fetch
54+
- name: cargo clippy
55+
run: cargo clippy --all-targets --all-features -- -D warnings
56+
4457
test:
4558
name: Test
4659
strategy:
@@ -231,6 +244,6 @@ jobs:
231244

232245
test_success:
233246
runs-on: ubuntu-22.04
234-
needs: [typos, lint, test, self, publish-check, doc-book]
247+
needs: [typos, lint, test, self, publish-check, doc-book, msrv]
235248
steps:
236249
- run: echo "All test jobs passed"

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ homepage = "https://github.com/EmbarkStudios/cargo-deny"
1515
categories = ["development-tools::cargo-plugins"]
1616
keywords = ["cargo", "license", "spdx", "ci", "advisories"]
1717
exclude = ["docs/", "examples/", ".github/", "tests"]
18-
rust-version = "1.70.0"
18+
rust-version = "1.81.0"
1919

2020
[badges]
2121
maintenance = { status = "actively-developed" }

0 commit comments

Comments
 (0)