CI: Pin nightly version for cargo public-api-crates (#2779)

This commit is contained in:
David Mládek 2024-06-09 23:33:25 +02:00 committed by GitHub
parent 51bb82bb2d
commit 806bc26e62
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -56,13 +56,19 @@ jobs:
crate: [axum, axum-core, axum-extra, axum-macros] crate: [axum, axum-core, axum-extra, axum-macros]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly # Pinned version due to failing `cargo-public-api-crates`.
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2024-06-06
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
- name: Install cargo-public-api-crates - name: Install cargo-public-api-crates
run: | run: |
cargo install --git https://github.com/davidpdrsn/cargo-public-api-crates cargo install --git https://github.com/davidpdrsn/cargo-public-api-crates
- name: Build rustdoc
run: |
cargo rustdoc --all-features --manifest-path ${{ matrix.crate }}/Cargo.toml -- -Z unstable-options --output-format json
- name: cargo public-api-crates check - name: cargo public-api-crates check
run: cargo public-api-crates --manifest-path ${{ matrix.crate }}/Cargo.toml check run: cargo public-api-crates --manifest-path ${{ matrix.crate }}/Cargo.toml --skip-build check
test-versions: test-versions:
needs: check needs: check