21
21
- uses : Swatinem/rust-cache@v2
22
22
with :
23
23
save-if : ${{ github.ref == 'refs/heads/main' }}
24
- prefix-key : " v0-rust-ubuntu-24.04"
25
24
- name : Check
26
25
run : cargo clippy --workspace --all-targets --all-features -- -D warnings
27
26
- name : rustfmt
35
34
- uses : Swatinem/rust-cache@v2
36
35
with :
37
36
save-if : ${{ github.ref == 'refs/heads/main' }}
38
- prefix-key : " v0-rust-ubuntu-24.04"
39
37
- name : cargo doc
40
38
env :
41
39
RUSTDOCFLAGS : " -D rustdoc::all -A rustdoc::private-doc-tests"
52
50
- uses : Swatinem/rust-cache@v2
53
51
with :
54
52
save-if : ${{ github.ref == 'refs/heads/main' }}
55
- prefix-key : " v0-rust-ubuntu-24.04"
56
53
- name : Install cargo-hack
57
54
run : |
58
55
curl -LsSf https://github.com/taiki-e/cargo-hack/releases/latest/download/cargo-hack-x86_64-unknown-linux-gnu.tar.gz | tar xzf - -C ~/.cargo/bin
70
67
- uses : Swatinem/rust-cache@v2
71
68
with :
72
69
save-if : ${{ github.ref == 'refs/heads/main' }}
73
- prefix-key : " v0-rust-ubuntu-24.04"
74
70
- name : Install cargo-public-api-crates
75
71
run : |
76
72
cargo install --git https://github.com/jplatte/cargo-public-api-crates
91
87
- uses : Swatinem/rust-cache@v2
92
88
with :
93
89
save-if : ${{ github.ref == 'refs/heads/main' }}
94
- prefix-key : " v0-rust-ubuntu-24.04"
95
90
- name : Run tests
96
91
run : cargo test --workspace --all-features --all-targets
97
92
@@ -110,7 +105,6 @@ jobs:
110
105
- uses : Swatinem/rust-cache@v2
111
106
with :
112
107
save-if : ${{ github.ref == 'refs/heads/main' }}
113
- prefix-key : " v0-rust-ubuntu-24.04"
114
108
- name : Run nightly tests
115
109
working-directory : axum-macros
116
110
run : cargo test
@@ -130,7 +124,6 @@ jobs:
130
124
- uses : Swatinem/rust-cache@v2
131
125
with :
132
126
save-if : ${{ github.ref == 'refs/heads/main' }}
133
- prefix-key : " v0-rust-ubuntu-24.04"
134
127
- name : Select minimal version
135
128
run : cargo +nightly update -Z minimal-versions
136
129
- name : Fix up Cargo.lock
@@ -165,7 +158,6 @@ jobs:
165
158
- uses : Swatinem/rust-cache@v2
166
159
with :
167
160
save-if : ${{ github.ref == 'refs/heads/main' }}
168
- prefix-key : " v0-rust-ubuntu-24.04"
169
161
- name : Run doc tests
170
162
run : cargo test --all-features --doc
171
163
@@ -196,7 +188,6 @@ jobs:
196
188
- uses : Swatinem/rust-cache@v2
197
189
with :
198
190
save-if : ${{ github.ref == 'refs/heads/main' }}
199
- prefix-key : " v0-rust-ubuntu-24.04"
200
191
- name : Check
201
192
env :
202
193
# Clang has native cross-compilation support
@@ -223,7 +214,6 @@ jobs:
223
214
- uses : Swatinem/rust-cache@v2
224
215
with :
225
216
save-if : ${{ github.ref == 'refs/heads/main' }}
226
- prefix-key : " v0-rust-ubuntu-24.04"
227
217
- name : Check
228
218
run : >
229
219
cargo
@@ -239,7 +229,6 @@ jobs:
239
229
- uses : Swatinem/rust-cache@v2
240
230
with :
241
231
save-if : ${{ github.ref == 'refs/heads/main' }}
242
- prefix-key : " v0-rust-ubuntu-24.04"
243
232
- name : Install cargo-sort
244
233
run : |
245
234
cargo install cargo-sort
0 commit comments