2121 - uses : Swatinem/rust-cache@v2
2222 with :
2323 save-if : ${{ github.ref == 'refs/heads/main' }}
24- prefix-key : " v0-rust-ubuntu-24.04"
2524 - name : Check
2625 run : cargo clippy --workspace --all-targets --all-features -- -D warnings
2726 - name : rustfmt
3534 - uses : Swatinem/rust-cache@v2
3635 with :
3736 save-if : ${{ github.ref == 'refs/heads/main' }}
38- prefix-key : " v0-rust-ubuntu-24.04"
3937 - name : cargo doc
4038 env :
4139 RUSTDOCFLAGS : " -D rustdoc::all -A rustdoc::private-doc-tests"
5250 - uses : Swatinem/rust-cache@v2
5351 with :
5452 save-if : ${{ github.ref == 'refs/heads/main' }}
55- prefix-key : " v0-rust-ubuntu-24.04"
5653 - name : Install cargo-hack
5754 run : |
5855 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
7067 - uses : Swatinem/rust-cache@v2
7168 with :
7269 save-if : ${{ github.ref == 'refs/heads/main' }}
73- prefix-key : " v0-rust-ubuntu-24.04"
7470 - name : Install cargo-public-api-crates
7571 run : |
7672 cargo install --git https://github.com/jplatte/cargo-public-api-crates
9187 - uses : Swatinem/rust-cache@v2
9288 with :
9389 save-if : ${{ github.ref == 'refs/heads/main' }}
94- prefix-key : " v0-rust-ubuntu-24.04"
9590 - name : Run tests
9691 run : cargo test --workspace --all-features --all-targets
9792
@@ -110,7 +105,6 @@ jobs:
110105 - uses : Swatinem/rust-cache@v2
111106 with :
112107 save-if : ${{ github.ref == 'refs/heads/main' }}
113- prefix-key : " v0-rust-ubuntu-24.04"
114108 - name : Run nightly tests
115109 working-directory : axum-macros
116110 run : cargo test
@@ -130,7 +124,6 @@ jobs:
130124 - uses : Swatinem/rust-cache@v2
131125 with :
132126 save-if : ${{ github.ref == 'refs/heads/main' }}
133- prefix-key : " v0-rust-ubuntu-24.04"
134127 - name : Select minimal version
135128 run : cargo +nightly update -Z minimal-versions
136129 - name : Fix up Cargo.lock
@@ -165,7 +158,6 @@ jobs:
165158 - uses : Swatinem/rust-cache@v2
166159 with :
167160 save-if : ${{ github.ref == 'refs/heads/main' }}
168- prefix-key : " v0-rust-ubuntu-24.04"
169161 - name : Run doc tests
170162 run : cargo test --all-features --doc
171163
@@ -196,7 +188,6 @@ jobs:
196188 - uses : Swatinem/rust-cache@v2
197189 with :
198190 save-if : ${{ github.ref == 'refs/heads/main' }}
199- prefix-key : " v0-rust-ubuntu-24.04"
200191 - name : Check
201192 env :
202193 # Clang has native cross-compilation support
@@ -223,7 +214,6 @@ jobs:
223214 - uses : Swatinem/rust-cache@v2
224215 with :
225216 save-if : ${{ github.ref == 'refs/heads/main' }}
226- prefix-key : " v0-rust-ubuntu-24.04"
227217 - name : Check
228218 run : >
229219 cargo
@@ -239,7 +229,6 @@ jobs:
239229 - uses : Swatinem/rust-cache@v2
240230 with :
241231 save-if : ${{ github.ref == 'refs/heads/main' }}
242- prefix-key : " v0-rust-ubuntu-24.04"
243232 - name : Install cargo-sort
244233 run : |
245234 cargo install cargo-sort
0 commit comments