Skip to content
Myr

CI: Remove obsolete `prefix-key` attributes for `rust-cache` action (#3130)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tobias Bieniek · committed by GitHub · parent f8f3a03 · Browse files · 1 file+0 added−11 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+0 added−11 removed

  • other:+0 added−11 removed

1 file+0 added−11 removed

modified:.github/workflows/CI.yml-11 removed
19 unmodified lines
20 components: clippy, rustfmt21 - uses: Swatinem/rust-cache@v222 with:23 save-if: ${{ github.ref == 'refs/heads/main' }}24 prefix-key: "v0-rust-ubuntu-24.04"24 - name: Check25 run: cargo clippy --workspace --all-targets --all-features -- -D warnings26 - name: rustfmt27 run: cargo fmt --all --check
5 unmodified lines
33 - uses: dtolnay/rust-toolchain@stable34 - uses: Swatinem/rust-cache@v235 with:36 save-if: ${{ github.ref == 'refs/heads/main' }}38 prefix-key: "v0-rust-ubuntu-24.04"37 - name: cargo doc38 env:39 RUSTDOCFLAGS: "-D rustdoc::all -A rustdoc::private-doc-tests"40 run: cargo doc --all-features --no-deps
8 unmodified lines
49 - uses: dtolnay/rust-toolchain@stable50 - uses: Swatinem/rust-cache@v251 with:52 save-if: ${{ github.ref == 'refs/heads/main' }}55 prefix-key: "v0-rust-ubuntu-24.04"53 - name: Install cargo-hack54 run: |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/bin56 - name: cargo hack check
9 unmodified lines
66 - uses: dtolnay/rust-toolchain@nightly67 - uses: Swatinem/rust-cache@v268 with:69 save-if: ${{ github.ref == 'refs/heads/main' }}73 prefix-key: "v0-rust-ubuntu-24.04"70 - name: Install cargo-public-api-crates71 run: |72 cargo install --git https://github.com/jplatte/cargo-public-api-crates73 - name: cargo public-api-crates check
12 unmodified lines
86 toolchain: ${{ matrix.rust }}87 - uses: Swatinem/rust-cache@v288 with:89 save-if: ${{ github.ref == 'refs/heads/main' }}94 prefix-key: "v0-rust-ubuntu-24.04"90 - name: Run tests91 run: cargo test --workspace --all-features --all-targets9293 # some examples don't support our MSRV so we only test axum itself on our MSRV
10 unmodified lines
104 toolchain: ${{ steps.rust-toolchain.outputs.version }}105 - uses: Swatinem/rust-cache@v2106 with:107 save-if: ${{ github.ref == 'refs/heads/main' }}113 prefix-key: "v0-rust-ubuntu-24.04"108 - name: Run nightly tests109 working-directory: axum-macros110 run: cargo test111
11 unmodified lines
123 uses: dtolnay/rust-toolchain@nightly124 - uses: Swatinem/rust-cache@v2125 with:126 save-if: ${{ github.ref == 'refs/heads/main' }}133 prefix-key: "v0-rust-ubuntu-24.04"127 - name: Select minimal version128 run: cargo +nightly update -Z minimal-versions129 - name: Fix up Cargo.lock130 run: cargo +nightly update -p crc32fast --precise 1.1.1
26 unmodified lines
157 - uses: dtolnay/rust-toolchain@stable158 - uses: Swatinem/rust-cache@v2159 with:160 save-if: ${{ github.ref == 'refs/heads/main' }}168 prefix-key: "v0-rust-ubuntu-24.04"161 - name: Run doc tests162 run: cargo test --all-features --doc163164 deny-check:
22 unmodified lines
187 target: armv5te-unknown-linux-musleabi188 - uses: Swatinem/rust-cache@v2189 with:190 save-if: ${{ github.ref == 'refs/heads/main' }}199 prefix-key: "v0-rust-ubuntu-24.04"191 - name: Check192 env:193 # Clang has native cross-compilation support194 CC: clang
18 unmodified lines
213 target: wasm32-unknown-unknown214 - uses: Swatinem/rust-cache@v2215 with:216 save-if: ${{ github.ref == 'refs/heads/main' }}226 prefix-key: "v0-rust-ubuntu-24.04"217 - name: Check218 run: >219 cargo220 check
7 unmodified lines
228 - uses: dtolnay/rust-toolchain@beta229 - uses: Swatinem/rust-cache@v2230 with:231 save-if: ${{ github.ref == 'refs/heads/main' }}242 prefix-key: "v0-rust-ubuntu-24.04"232 - name: Install cargo-sort233 run: |234 cargo install cargo-sort235 # Work around cargo-sort not honoring workspace.exclude
17 unmodified lines