2828 runs-on : ubuntu-24.04
2929 timeout-minutes : 10
3030 steps :
31- - uses : actions/checkout@v4
31+ - uses : actions/checkout@v5
3232 - name : Setup Rust toolchain
3333 run : ./ci/install-rust.sh && rustup component add rustfmt
3434 - name : Check style
4242 runs-on : ${{ matrix.os }}
4343 timeout-minutes : 10
4444 steps :
45- - uses : actions/checkout@v4
45+ - uses : actions/checkout@v5
4646 - run : rustup update stable --no-self-update
4747 - uses : Swatinem/rust-cache@v2
4848 # Here we use the latest stable Rust toolchain already installed by GitHub
6565 env :
6666 TOOLCHAIN : ${{ matrix.toolchain }}
6767 steps :
68- - uses : actions/checkout@v4
68+ - uses : actions/checkout@v5
6969 - name : Setup Rust toolchain
7070 run : ./ci/install-rust.sh
7171
8888 if [ "${{ matrix.toolchain }}" = "1.63.0" ]; then
8989 # Remove `-Dwarnings` at the MSRV since lints may be different
9090 export RUSTFLAGS=""
91- # Remove `ctest-next ` which uses the 2024 edition
92- perl -i -ne 'print unless /"ctest-(next| test)",/ || /"libc-test",/' Cargo.toml
91+ # Remove `ctest` which uses the 2024 edition
92+ perl -i -ne 'print unless /"ctest(- test)? ",/ || /"libc-test",/' Cargo.toml
9393 fi
9494
9595 ./ci/verify-build.sh
@@ -140,7 +140,7 @@ jobs:
140140 env :
141141 TARGET : ${{ matrix.target }}
142142 steps :
143- - uses : actions/checkout@v4
143+ - uses : actions/checkout@v5
144144 - name : Setup Rust toolchain
145145 run : ./ci/install-rust.sh
146146 - uses : Swatinem/rust-cache@v2
@@ -249,7 +249,7 @@ jobs:
249249 env :
250250 TARGET : ${{ matrix.target }}
251251 steps :
252- - uses : actions/checkout@v4
252+ - uses : actions/checkout@v5
253253 - name : Setup Rust toolchain
254254 run : ./ci/install-rust.sh
255255 - uses : Swatinem/rust-cache@v2
@@ -288,9 +288,9 @@ jobs:
288288 - x86_64-pc-solaris
289289 timeout-minutes : 25
290290 steps :
291- - uses : actions/checkout@v4
291+ - uses : actions/checkout@v5
292292 - name : test on Solaris
293- uses : vmactions/solaris-vm@v1.1.4
293+ uses : vmactions/solaris-vm@v1.1.5
294294 with :
295295 release : " 11.4-gcc"
296296 usesh : true
@@ -306,21 +306,22 @@ jobs:
306306 ./ci/run.sh ${{ matrix.target }}
307307
308308 ctest_msrv :
309- name : Check MSRV
309+ name : Check ctest MSRV
310310 runs-on : ubuntu-24.04
311311 timeout-minutes : 10
312312 env :
313313 RUSTFLAGS : # No need to check warnings on old MSRV, unset `-Dwarnings`
314314 steps :
315315 - uses : actions/checkout@master
316316 - run : |
317- msrv="$(cargo metadata --format-version 1 | jq -r --arg CRATE_NAME ctest '.packages | map(select(.name == $CRATE_NAME)) | first | .rust_version')"
317+ msrv="$(
318+ cargo metadata --format-version 1 |
319+ jq -r --arg CRATE_NAME ctest '.packages | map(select((.name == $CRATE_NAME) and (.id | startswith("path+file")))) | first | .rust_version'
320+ )"
318321 echo "MSRV: $msrv"
319322 echo "MSRV=$msrv" >> "$GITHUB_ENV"
320323 - name : Install Rust
321324 run : rustup update "$MSRV" --no-self-update && rustup default "$MSRV"
322- - name : Remove edition 2024 crates
323- run : perl -i -ne 'print unless /"ctest-(next|test)",/ || /"libc-test",/' Cargo.toml
324325 - uses : Swatinem/rust-cache@v2
325326 - run : cargo build -p ctest
326327
0 commit comments