@@ -24,107 +24,71 @@ jobs:
2424
2525 steps :
2626 - name : Checkout repository
27- uses : actions/checkout@v3
27+ uses : actions/checkout@v4
2828 with :
2929 submodules : recursive
3030
3131 - name : Install Rust toolchain
32- uses : actions-rs/ toolchain@v1
32+ uses : dtolnay/rust- toolchain@master
3333 with :
3434 toolchain : ${{ matrix.toolchain }}
35- profile : minimal
36- default : true
3735
3836 - name : Build (secure)
39- uses : actions-rs/cargo@v1
40- with :
41- command : build
37+ run : cargo build --features secure
4238
4339 - name : Test (secure)
44- uses : actions-rs/cargo@v1
45- with :
46- command : test
40+ run : cargo test --features secure
4741
4842 - name : Test libmimalloc-sys crate bindings (secure)
49- uses : actions-rs/cargo@v1
50- with :
51- command : run
52- args : -p libmimalloc-sys-test
43+ run : cargo run --features secure -p libmimalloc-sys-test
5344
5445 - name : Build (no secure)
55- uses : actions-rs/cargo@v1
56- with :
57- command : build
58- args : --no-default-features
46+ run : cargo build
5947
6048 - name : Test (no secure)
61- uses : actions-rs/cargo@v1
62- with :
63- command : test
64- args : --no-default-features
49+ run : cargo test
6550
6651 - name : Test libmimalloc-sys crate bindings (no secure)
67- uses : actions-rs/cargo@v1
68- with :
69- command : run
70- args : --no-default-features -p libmimalloc-sys-test
52+ run : cargo run -p libmimalloc-sys-test
7153
7254 lint :
7355 name : Rustfmt / Clippy
7456 runs-on : ubuntu-latest
7557
7658 steps :
77- - uses : actions/checkout@v3
59+ - uses : actions/checkout@v4
7860 with :
7961 submodules : recursive
8062
81- - uses : actions-rs/ toolchain@v1
63+ - uses : dtolnay/rust- toolchain@stable
8264 with :
83- profile : minimal
84- toolchain : stable
8565 components : rustfmt, clippy
8666
8767 - name : Fmt
88- uses : actions-rs/cargo@v1
89- with :
90- command : fmt
91- args : --all -- --check
68+ run : cargo fmt --all -- --check
9269
9370 - name : Clippy
94- uses : actions-rs/cargo@v1
95- with :
96- command : clippy
97- args : --workspace -- -D warnings
71+ run : cargo clippy --workspace -- -D warnings
9872
9973 # Detect cases where documentation links would be dead
10074 doc :
10175 name : Check documentation
10276 runs-on : ubuntu-latest
10377 steps :
10478
105- - uses : actions/checkout@v3
79+ - uses : actions/checkout@v4
10680 with :
10781 submodules : recursive
10882
109- - uses : actions-rs/toolchain@v1
110- with :
111- profile : minimal
112- toolchain : nightly
113- override : true
83+ - uses : dtolnay/rust-toolchain@nightly
11484
11585 # Note: We need to use nightly rust, and `cargo rustdoc` (yes, not `cargo
11686 # doc`) to actually get it to respect -D warnings... Using nightly also
11787 # gets us the nicer syntax for linking to functions, and is in-line with
11888 # what docs.rs uses.
11989
12090 - name : ' Check documentation links in `mimalloc`'
121- uses : actions-rs/cargo@v1
122- with :
123- command : rustdoc
124- args : -- -D warnings
91+ run : cargo rustdoc -- -D warnings
12592
12693 - name : ' Check documentation links in `libmimalloc-sys`'
127- uses : actions-rs/cargo@v1
128- with :
129- command : rustdoc
130- args : -p libmimalloc-sys -- -D warnings
94+ run : cargo rustdoc -p libmimalloc-sys -- -D warnings
0 commit comments