From 44b9eb442c1d8f20c8f9ad93ce3123afc85853b5 Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Sat, 28 Dec 2024 06:02:02 +0000 Subject: [PATCH] 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. --- .github/workflows/rust.yml | 16 +++++++++++++++- Cargo.toml | 3 ++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 2df9dbc..7960d39 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -16,7 +16,7 @@ jobs: - stable - beta - nightly - - 1.23.0 + - 1.63.0 # MSRV of test dependencies os: - macos-11 - windows-2022 @@ -32,3 +32,17 @@ jobs: rustup update --no-self-update - run: cargo +${{ matrix.channel }} test --all + + msrv: + name: Check building with the MSRV + runs-on: ubuntu-22.04 + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Update rust + run: | + rustup default 1.23.0 + rustup update --no-self-update + + - run: cargo build diff --git a/Cargo.toml b/Cargo.toml index 894ed21..f2de0b2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,8 +11,9 @@ description = """ Support for matching file paths against Unix shell style patterns. """ categories = ["filesystem"] +rust-version = "1.23.0" [dev-dependencies] -# FIXME: Replace it with `tempfile` once we bump up MSRV. +# FIXME: This should be replaced by `tempfile` tempdir = "0.3" doc-comment = "0.3"