CI.yml
This file
Path
.github/workflows/CI.yml
219 lines · 6.8 KiB · YAML
Last changed by
Update tungstenite version to 0.30.0 (#3935)xd009642before adoptiondcfd5e3
History of this fileTake it
The walk stopped after 200 commits: lines older than dcbcf5c point at it.
axum-extra: Make typed-routing feature enable routing feature (#3514)tottotobefore adoptiondcbcf5c
lines 1–4why, one step back1name: CI23env:4 CARGO_TERM_COLOR: alwaysUpdate tungstenite version to 0.30.0 (#3935)xd009642before adoptiondcfd5e3
line 5why, one step back5 MSRV: '1.85'axum-extra: Make typed-routing feature enable routing feature (#3514)tottotobefore adoptiondcbcf5c
lines 6–16why, one step back67on:8 push:9 branches:10 - main11 - v0.*12 pull_request: {}1314jobs:15 check:16 runs-on: ubuntu-24.04ci: Make examples cached and checked with rustfmt (#3609)tottotobefore adoption051628c
lines 17–19why, one step back17 strategy:18 matrix:19 workspace: [".", examples]axum-extra: Make typed-routing feature enable routing feature (#3514)tottotobefore adoptiondcbcf5c
line 20why, one step back20 steps:ci: Refactor ci style (#3613)tottotobefore adoption023d8b7
lines 21–32why, one step back21 - uses: actions/checkout@v622 - uses: dtolnay/rust-toolchain@beta23 with:24 components: clippy, rustfmt25 - uses: Swatinem/rust-cache@v226 with:27 save-if: ${{ github.ref == 'refs/heads/main' }}28 workspaces: ${{ matrix.workspace }}29 - name: Check30 run: cargo clippy --locked --manifest-path ${{ matrix.workspace }}/Cargo.toml --workspace --all-targets --all-features -- -D warnings31 - name: rustfmt32 run: cargo fmt --all --check --manifest-path ${{ matrix.workspace }}/Cargo.tomlaxum-extra: Make typed-routing feature enable routing feature (#3514)tottotobefore adoptiondcbcf5c
lines 33–36why, one step back3334 check-docs:35 runs-on: ubuntu-24.0436 steps:ci: Refactor ci style (#3613)tottotobefore adoption023d8b7
lines 37–47why, one step back37 - uses: actions/checkout@v638 - uses: dtolnay/rust-toolchain@stable39 - uses: Swatinem/rust-cache@v240 with:41 save-if: ${{ github.ref == 'refs/heads/main' }}42 - name: cargo doc -p axum-core43 run: cargo doc --package axum-core --all-features --no-deps44 - name: cargo doc -p axum45 run: cargo doc --package axum --all-features --no-deps46 - name: cargo doc -p axum-extra47 run: cargo doc --package axum-extra --all-features --no-depsaxum-extra: Make typed-routing feature enable routing feature (#3514)tottotobefore adoptiondcbcf5c
lines 48–56why, one step back48 env:49 RUSTDOCFLAGS: "-D rustdoc::all -A rustdoc::private-doc-tests"5051 cargo-hack:52 runs-on: ubuntu-24.0453 env:54 # Fail the build if there are any warnings55 RUSTFLAGS: "-D warnings"56 steps:ci: Refactor ci style (#3613)tottotobefore adoption023d8b7
lines 57–64why, one step back57 - uses: actions/checkout@v658 - uses: dtolnay/rust-toolchain@stable59 - uses: Swatinem/rust-cache@v260 with:61 save-if: ${{ github.ref == 'refs/heads/main' }}62 - uses: taiki-e/install-action@cargo-hack63 - name: cargo hack check64 run: cargo hack check --each-feature --no-dev-deps --allaxum-extra: Make typed-routing feature enable routing feature (#3514)tottotobefore adoptiondcbcf5c
line 65why, one step back65ci: Switch cargo-public-api-crates to cargo-check-external-types (#3576)tottotobefore adoption642e4dc
line 66why, one step back66 external-types:axum-extra: Make typed-routing feature enable routing feature (#3514)tottotobefore adoptiondcbcf5c
lines 67–68why, one step back67 runs-on: ubuntu-24.0468 steps:ci: Refactor ci style (#3613)tottotobefore adoption023d8b7
lines 69–71why, one step back69 - uses: actions/checkout@v670 - uses: dtolnay/rust-toolchain@master71 with:ci: Update to cargo-check-external-types 0.5.0 (#3874)tottotobefore adoption8aae593
line 72why, one step back72 toolchain: nightly-2026-03-20ci: Refactor ci style (#3613)tottotobefore adoption023d8b7
line 73why, one step back73 - name: Install cargo-check-external-typeschore(deps): bump taiki-e/cache-cargo-install-action from 3.0.7 to 3.0.8 (#3861)dependabot[bot]before adoption151cd5c
line 74why, one step back74 uses: taiki-e/cache-cargo-install-action@v3.0.8ci: Refactor ci style (#3613)tottotobefore adoption023d8b7
line 75why, one step back75 with:ci: Update to cargo-check-external-types 0.5.0 (#3874)tottotobefore adoption8aae593
line 76why, one step back76 tool: cargo-check-external-types@0.5.0ci: Refactor ci style (#3613)tottotobefore adoption023d8b7
lines 77–81why, one step back77 - uses: taiki-e/install-action@cargo-hack78 - uses: Swatinem/rust-cache@v279 with:80 save-if: ${{ github.ref == 'refs/heads/main' }}81 - run: cargo hack --no-private --exclude axum-macros check-external-types --all-featuresaxum-extra: Make typed-routing feature enable routing feature (#3514)tottotobefore adoptiondcbcf5c
lines 82–88why, one step back8283 test-versions:84 needs: check85 runs-on: ubuntu-24.0486 strategy:87 matrix:88 rust: [stable, beta]ci: Make examples cached and checked with rustfmt (#3609)tottotobefore adoption051628c
line 89why, one step back89 workspace: [".", examples]axum-extra: Make typed-routing feature enable routing feature (#3514)tottotobefore adoptiondcbcf5c
line 90why, one step back90 steps:ci: Refactor ci style (#3613)tottotobefore adoption023d8b7
lines 91–100why, one step back91 - uses: actions/checkout@v692 - uses: dtolnay/rust-toolchain@master93 with:94 toolchain: ${{ matrix.rust }}95 - uses: Swatinem/rust-cache@v296 with:97 save-if: ${{ github.ref == 'refs/heads/main' }}98 workspaces: ${{ matrix.workspace }}99 - name: Run tests100 run: cargo test --locked --workspace --all-features --all-targets --manifest-path ${{ matrix.workspace }}/Cargo.tomlaxum-extra: Make typed-routing feature enable routing feature (#3514)tottotobefore adoptiondcbcf5c
lines 101–106why, one step back101102 # some examples don't support our MSRV so we only test axum itself on our MSRV103 test-nightly:104 needs: check105 runs-on: ubuntu-24.04106 steps:ci: Refactor ci style (#3613)tottotobefore adoption023d8b7
lines 107–119why, one step back107 - uses: actions/checkout@v6108 - name: Get rust-toolchain version109 id: rust-toolchain110 run: echo "version=$(cat axum-macros/rust-toolchain)" >> $GITHUB_OUTPUT111 - uses: dtolnay/rust-toolchain@master112 with:113 toolchain: ${{ steps.rust-toolchain.outputs.version }}114 - uses: Swatinem/rust-cache@v2115 with:116 save-if: ${{ github.ref == 'refs/heads/main' }}117 - name: Run nightly tests118 working-directory: axum-macros119 run: cargo testaxum-extra: Make typed-routing feature enable routing feature (#3514)tottotobefore adoptiondcbcf5c
lines 120–126why, one step back120121 # some examples don't support our MSRV (such as async-graphql)122 # so we only test axum itself on our MSRV123 test-msrv:124 needs: check125 runs-on: ubuntu-24.04126 steps:ci: Refactor ci style (#3613)tottotobefore adoption023d8b7
lines 127–137why, one step back127 - uses: actions/checkout@v6128 - name: "install Rust nightly"129 uses: dtolnay/rust-toolchain@nightly130 - name: Select minimal version131 run: cargo +nightly update -Z minimal-versions132 - name: Fix up Cargo.lock - crc32fast133 run: cargo +nightly update -p crc32fast --precise 1.1.1134 - name: Fix up Cargo.lock - version_check135 run : cargo +nightly update -p version_check@0.1.0 --precise 0.1.4136 - name: Fix up Cargo.lock - lazy_static137 run: cargo +nightly update -p lazy_static --precise 1.1.0ci: Improve test-msrv job cache (#3627)tottotobefore adoptionf829daf
lines 138–143why, one step back138 - uses: dtolnay/rust-toolchain@master139 with:140 toolchain: ${{ env.MSRV }}141 - uses: Swatinem/rust-cache@v2142 with:143 save-if: ${{ github.ref == 'refs/heads/main' }}ci: Refactor ci style (#3613)tottotobefore adoption023d8b7
line 144why, one step back144 - name: Run testsci: Remove unnecessary package handling (#3628)tottotobefore adoptionc3fc7bb
line 145why, one step back145 run: cargo +${{ env.MSRV }} test --locked --all-featuresaxum-extra: Make typed-routing feature enable routing feature (#3514)tottotobefore adoptiondcbcf5c
lines 146–156why, one step back146147 deny-check:148 name: cargo-deny check149 runs-on: ubuntu-24.04150 continue-on-error: ${{ matrix.checks == 'advisories' }}151 strategy:152 matrix:153 checks:154 - advisories155 - bans licenses sources156 steps:ci: Update to actions/checkout v6 (#3572)tottotobefore adoptionaeff16e
line 157why, one step back157 - uses: actions/checkout@v6axum-extra: Make typed-routing feature enable routing feature (#3514)tottotobefore adoptiondcbcf5c
lines 158–166why, one step back158 - uses: EmbarkStudios/cargo-deny-action@v2159 with:160 command: check ${{ matrix.checks }}161 manifest-path: axum/Cargo.toml162163 armv5te-unknown-linux-musleabi:164 needs: check165 runs-on: ubuntu-24.04166 steps:ci: Refactor ci style (#3613)tottotobefore adoption023d8b7
lines 167–177why, one step back167 - uses: actions/checkout@v6168 - uses: dtolnay/rust-toolchain@stable169 with:170 target: armv5te-unknown-linux-musleabi171 - uses: Swatinem/rust-cache@v2172 with:173 save-if: ${{ github.ref == 'refs/heads/main' }}174 - name: Check175 env:176 # Clang has native cross-compilation support177 CC: clangci: Remove unnecessary package handling (#3628)tottotobefore adoptionc3fc7bb
line 178why, one step back178 run: cargo check --all-targets --all-features --target armv5te-unknown-linux-musleabiaxum-extra: Make typed-routing feature enable routing feature (#3514)tottotobefore adoptiondcbcf5c
lines 179–183why, one step back179180 wasm32-unknown-unknown:181 needs: check182 runs-on: ubuntu-24.04183 steps:ci: Refactor ci style (#3613)tottotobefore adoption023d8b7
lines 184–197why, one step back184 - uses: actions/checkout@v6185 - uses: dtolnay/rust-toolchain@stable186 with:187 target: wasm32-unknown-unknown188 - uses: Swatinem/rust-cache@v2189 with:190 save-if: ${{ github.ref == 'refs/heads/main' }}191 workspaces: examples192 - name: Check193 run: >194 cargo195 check196 --manifest-path ./examples/simple-router-wasm/Cargo.toml197 --target wasm32-unknown-unknownaxum-extra: Make typed-routing feature enable routing feature (#3514)tottotobefore adoptiondcbcf5c
lines 198–201why, one step back198199 dependencies-are-sorted:200 runs-on: ubuntu-24.04201 steps:ci: Refactor ci style (#3613)tottotobefore adoption023d8b7
lines 202–205why, one step back202 - uses: actions/checkout@v6203 - name: Install cargo-sort204 uses: taiki-e/install-action@v2205 with:ci: Update to cargo-sort 2.1.3 (#3692)tottotobefore adoption907ba35
line 206why, one step back206 tool: cargo-sort@2.1.3ci: Refactor ci style (#3613)tottotobefore adoption023d8b7
line 207why, one step back207 - name: Check dependency tablesci: Make examples checked with cargo-sort (#3624)tottotobefore adoption309dc56
lines 208–211why, one step back208 run: cargo-sort --workspace --grouped --check209 - name: Check examples dependency tables210 run: cargo-sort --workspace --grouped --check211 working-directory: examplesaxum-extra: Make typed-routing feature enable routing feature (#3514)tottotobefore adoptiondcbcf5c
lines 212–216why, one step back212213 typos:214 name: Spell Check with Typos215 runs-on: ubuntu-24.04216 steps:ci: Refactor ci style (#3613)tottotobefore adoption023d8b7
line 217why, one step back217 - uses: actions/checkout@v6axum-extra: Make typed-routing feature enable routing feature (#3514)tottotobefore adoptiondcbcf5c
line 218why, one step back218 - name: Check the spelling of the files in our repochore(deps): bump crate-ci/typos from 1.50.2 to 1.50.3 (#3908)dependabot[bot]before adoption83366c2
line 219why, one step back219 uses: crate-ci/typos@v1.50.3