Skip to content

Commit

Permalink
Fix CI (#517)
Browse files Browse the repository at this point in the history
* ci: Upgrade checkout action to v4

* ci: Pin old nightly for cargo-public-api-crates

* ci: Build rustdoc before calling cargo-public-api-crates

* ci: Downgrade tokio-util to fix MSRV job
  • Loading branch information
jplatte authored Sep 19, 2024
1 parent 3f98dc1 commit 0138f9e
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Install protoc
uses: taiki-e/install-action@v2
Expand All @@ -21,7 +21,7 @@ jobs:
check-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Install protoc
uses: taiki-e/install-action@v2
Expand All @@ -36,7 +36,7 @@ jobs:
cargo-hack:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@cargo-hack
- name: Install protoc
Expand All @@ -57,7 +57,7 @@ jobs:
matrix:
rust: [stable, beta, nightly]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
Expand All @@ -71,20 +71,21 @@ jobs:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
- name: Install protoc
uses: taiki-e/install-action@v2
with:
tool: [email protected]
- run: cargo update -p tokio --precise 1.38.1
- run: cargo update -p tokio-util --precise 0.7.11
- run: cargo test -p tower-http --all-features

style:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
Expand All @@ -104,7 +105,7 @@ jobs:
- advisories
- bans licenses sources
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: EmbarkStudios/cargo-deny-action@v1
with:
manifest-path: tower-http/Cargo.toml
Expand All @@ -113,11 +114,17 @@ jobs:
cargo-public-api-crates:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
- uses: actions/checkout@v4
# 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
- name: Install cargo-public-api-crates
run: |
cargo install --git https://github.com/davidpdrsn/cargo-public-api-crates
- name: Build rustdoc
run: |
cargo rustdoc --all-features --manifest-path tower-http/Cargo.toml -- -Z unstable-options --output-format json
- name: cargo public-api-crates check
run: cargo public-api-crates --manifest-path tower-http/Cargo.toml check
run: cargo public-api-crates --manifest-path tower-http/Cargo.toml --skip-build check

0 comments on commit 0138f9e

Please sign in to comment.