File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments