@@ -24,107 +24,71 @@ jobs:
24
24
25
25
steps :
26
26
- name : Checkout repository
27
- uses : actions/checkout@v3
27
+ uses : actions/checkout@v4
28
28
with :
29
29
submodules : recursive
30
30
31
31
- name : Install Rust toolchain
32
- uses : actions-rs/ toolchain@v1
32
+ uses : dtolnay/rust- toolchain@master
33
33
with :
34
34
toolchain : ${{ matrix.toolchain }}
35
- profile : minimal
36
- default : true
37
35
38
36
- name : Build (secure)
39
- uses : actions-rs/cargo@v1
40
- with :
41
- command : build
37
+ run : cargo build --features secure
42
38
43
39
- name : Test (secure)
44
- uses : actions-rs/cargo@v1
45
- with :
46
- command : test
40
+ run : cargo test --features secure
47
41
48
42
- 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
53
44
54
45
- name : Build (no secure)
55
- uses : actions-rs/cargo@v1
56
- with :
57
- command : build
58
- args : --no-default-features
46
+ run : cargo build
59
47
60
48
- name : Test (no secure)
61
- uses : actions-rs/cargo@v1
62
- with :
63
- command : test
64
- args : --no-default-features
49
+ run : cargo test
65
50
66
51
- 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
71
53
72
54
lint :
73
55
name : Rustfmt / Clippy
74
56
runs-on : ubuntu-latest
75
57
76
58
steps :
77
- - uses : actions/checkout@v3
59
+ - uses : actions/checkout@v4
78
60
with :
79
61
submodules : recursive
80
62
81
- - uses : actions-rs/ toolchain@v1
63
+ - uses : dtolnay/rust- toolchain@stable
82
64
with :
83
- profile : minimal
84
- toolchain : stable
85
65
components : rustfmt, clippy
86
66
87
67
- name : Fmt
88
- uses : actions-rs/cargo@v1
89
- with :
90
- command : fmt
91
- args : --all -- --check
68
+ run : cargo fmt --all -- --check
92
69
93
70
- 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
98
72
99
73
# Detect cases where documentation links would be dead
100
74
doc :
101
75
name : Check documentation
102
76
runs-on : ubuntu-latest
103
77
steps :
104
78
105
- - uses : actions/checkout@v3
79
+ - uses : actions/checkout@v4
106
80
with :
107
81
submodules : recursive
108
82
109
- - uses : actions-rs/toolchain@v1
110
- with :
111
- profile : minimal
112
- toolchain : nightly
113
- override : true
83
+ - uses : dtolnay/rust-toolchain@nightly
114
84
115
85
# Note: We need to use nightly rust, and `cargo rustdoc` (yes, not `cargo
116
86
# doc`) to actually get it to respect -D warnings... Using nightly also
117
87
# gets us the nicer syntax for linking to functions, and is in-line with
118
88
# what docs.rs uses.
119
89
120
90
- 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
125
92
126
93
- 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