Skip to content

Commit 73e71ff

Browse files
committed
Check only (no longer test) at the MSRV
Adjust CI so we only run a check the main crate at the MSRV (1.23), running tests only at the MSRV of test dependencies. This allows us to keep CI passing without increasing `glob`'s MSRV to match that of `libc` (which since recently is 1.63.0) or other test dependencies. Additionally, set `rust-version` in Cargo.toml.
1 parent 8eb644a commit 73e71ff

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.github/workflows/rust.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- stable
1717
- beta
1818
- nightly
19-
- 1.23.0
19+
- 1.63.0 # MSRV of test dependencies
2020
os:
2121
- macos-11
2222
- windows-2022
@@ -33,3 +33,18 @@ jobs:
3333
3434
- name: Tests
3535
run: cargo +${{ matrix.channel }} test --all
36+
37+
msrv:
38+
name: "Check with the MSRV"
39+
runs-on: ubuntu-22.04
40+
steps:
41+
- name: Checkout repository
42+
uses: actions/checkout@v4
43+
44+
- name: Update rust
45+
run: |
46+
rustup default 1.23.0
47+
rustup update --no-self-update
48+
49+
- name: Tests
50+
run: cargo check

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ description = """
1111
Support for matching file paths against Unix shell style patterns.
1212
"""
1313
categories = ["filesystem"]
14+
rust-version = "1.23.0"
1415

1516
[dev-dependencies]
1617
# FIXME: Replace it with `tempfile` once we bump up MSRV.

0 commit comments

Comments
 (0)