-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
Showing
1 changed file
with
17 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 }} | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 |