diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index bb4e5625..c1084961 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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/rust-toolchain@1.66 - name: Install protoc uses: taiki-e/install-action@v2 with: tool: protoc@3.20.3 - 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