Skip to content

Commit 5481c98

Browse files
committed
Add a job to test the MSRV of ctest
Only `libc` is checked with 1.63 normally. Add a job that verifies the same for `ctest`.
1 parent 45b79ae commit 5481c98

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,23 @@ jobs:
213213
export PATH=$HOME/.rust_solaris/bin:$PATH
214214
./ci/run.sh ${{ matrix.target }}
215215
216+
ctest_msrv:
217+
name: Check MSRV
218+
runs-on: ubuntu-24.04
219+
timeout-minutes: 10
220+
env:
221+
RUSTFLAGS: # No need to check warnings on old MSRV, unset `-Dwarnings`
222+
steps:
223+
- uses: actions/checkout@master
224+
- run: |
225+
msrv="$(perl -ne 'print if s/rust-version\s*=\s*"(.*)"/\1/g' ctest/Cargo.toml)"
226+
echo "MSRV: $msrv"
227+
echo "MSRV=$msrv" >> "$GITHUB_ENV"
228+
- name: Install Rust
229+
run: rustup update "$MSRV" --no-self-update && rustup default "$MSRV"
230+
- uses: Swatinem/rust-cache@v2
231+
- run: cargo build -p ctest
232+
216233
# One job that "summarizes" the success state of this pipeline. This can then be added to branch
217234
# protection, rather than having to add each job separately.
218235
success:
@@ -224,6 +241,7 @@ jobs:
224241
- test_tier2
225242
- test_tier2_vm
226243
- verify_build
244+
- ctest_msrv
227245
# Github branch protection is exceedingly silly and treats "jobs skipped because a dependency
228246
# failed" as success. So we have to do some contortions to ensure the job fails if any of its
229247
# dependencies fails.

0 commit comments

Comments
 (0)