28
28
runs-on : ubuntu-24.04
29
29
timeout-minutes : 10
30
30
steps :
31
- - uses : actions/checkout@v4
31
+ - uses : actions/checkout@v5
32
32
- name : Setup Rust toolchain
33
33
run : ./ci/install-rust.sh && rustup component add rustfmt
34
34
- name : Check style
42
42
runs-on : ${{ matrix.os }}
43
43
timeout-minutes : 10
44
44
steps :
45
- - uses : actions/checkout@v4
45
+ - uses : actions/checkout@v5
46
46
- run : rustup update stable --no-self-update
47
47
- uses : Swatinem/rust-cache@v2
48
48
# Here we use the latest stable Rust toolchain already installed by GitHub
65
65
env :
66
66
TOOLCHAIN : ${{ matrix.toolchain }}
67
67
steps :
68
- - uses : actions/checkout@v4
68
+ - uses : actions/checkout@v5
69
69
- name : Setup Rust toolchain
70
70
run : ./ci/install-rust.sh
71
71
88
88
if [ "${{ matrix.toolchain }}" = "1.63.0" ]; then
89
89
# Remove `-Dwarnings` at the MSRV since lints may be different
90
90
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
93
93
fi
94
94
95
95
./ci/verify-build.sh
@@ -140,7 +140,7 @@ jobs:
140
140
env :
141
141
TARGET : ${{ matrix.target }}
142
142
steps :
143
- - uses : actions/checkout@v4
143
+ - uses : actions/checkout@v5
144
144
- name : Setup Rust toolchain
145
145
run : ./ci/install-rust.sh
146
146
- uses : Swatinem/rust-cache@v2
@@ -249,7 +249,7 @@ jobs:
249
249
env :
250
250
TARGET : ${{ matrix.target }}
251
251
steps :
252
- - uses : actions/checkout@v4
252
+ - uses : actions/checkout@v5
253
253
- name : Setup Rust toolchain
254
254
run : ./ci/install-rust.sh
255
255
- uses : Swatinem/rust-cache@v2
@@ -288,9 +288,9 @@ jobs:
288
288
- x86_64-pc-solaris
289
289
timeout-minutes : 25
290
290
steps :
291
- - uses : actions/checkout@v4
291
+ - uses : actions/checkout@v5
292
292
- name : test on Solaris
293
- uses :
vmactions/[email protected] .4
293
+ uses :
vmactions/[email protected] .5
294
294
with :
295
295
release : " 11.4-gcc"
296
296
usesh : true
@@ -306,21 +306,22 @@ jobs:
306
306
./ci/run.sh ${{ matrix.target }}
307
307
308
308
ctest_msrv :
309
- name : Check MSRV
309
+ name : Check ctest MSRV
310
310
runs-on : ubuntu-24.04
311
311
timeout-minutes : 10
312
312
env :
313
313
RUSTFLAGS : # No need to check warnings on old MSRV, unset `-Dwarnings`
314
314
steps :
315
315
- uses : actions/checkout@master
316
316
- 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
+ )"
318
321
echo "MSRV: $msrv"
319
322
echo "MSRV=$msrv" >> "$GITHUB_ENV"
320
323
- name : Install Rust
321
324
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
324
325
- uses : Swatinem/rust-cache@v2
325
326
- run : cargo build -p ctest
326
327
0 commit comments