Skip to content

Commit 7465c42

Browse files
authored
ci: add dedicated MSRV CI check (#103)
Signed-off-by: gruebel <anton.gruebel@gmail.com>
1 parent 97edee6 commit 7465c42

5 files changed

Lines changed: 19 additions & 616 deletions

File tree

.cargo/config.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[resolver]
2+
# https://doc.rust-lang.org/cargo/reference/config.html#resolverincompatible-rust-versions
3+
incompatible-rust-versions = "fallback"

.github/workflows/rust.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@ env:
1616
CARGO_TERM_COLOR: always
1717

1818
jobs:
19-
build:
19+
test:
2020
runs-on: ubuntu-latest
2121
strategy:
2222
matrix:
2323
rust:
24-
- 1.71.1 # MSRV
2524
- stable
2625
- beta
2726
steps:
@@ -31,10 +30,6 @@ jobs:
3130
with:
3231
toolchain: ${{ matrix.rust }}
3332

34-
- if: matrix.rust == '1.71.1'
35-
name: Use MSRV lock file
36-
run: cp Cargo.lock.msrv Cargo.lock
37-
3833
- name: Build
3934
run: cargo build --verbose
4035

@@ -56,3 +51,16 @@ jobs:
5651

5752
- name: Check code quality
5853
run: cargo clippy -- -D warnings
54+
55+
msrv:
56+
runs-on: ubuntu-latest
57+
steps:
58+
- uses: actions/checkout@v4
59+
- uses: actions-rust-lang/setup-rust-toolchain@v1
60+
with:
61+
toolchain: stable
62+
- uses: taiki-e/install-action@v2
63+
with:
64+
tool: cargo-msrv
65+
- name: Check MSRV
66+
run: cargo msrv verify --output-format json

0 commit comments

Comments
 (0)