Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
save-if: ${{ github.ref == 'refs/heads/main' }}
- run: cargo check --workspace --all-features --all-targets

check-docs:
Expand All @@ -30,6 +33,9 @@ jobs:
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
save-if: ${{ github.ref == 'refs/heads/main' }}
- uses: taiki-e/install-action@cargo-hack
- name: cargo hack check
working-directory: ${{ matrix.subcrate }}
Expand All @@ -49,6 +55,10 @@ jobs:
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- uses: Swatinem/rust-cache@v2
if: matrix.rust != 'nightly'
with:
save-if: ${{ github.ref == 'refs/heads/main' }}
- run: cargo test --workspace --all-features

test-msrv:
Expand All @@ -67,6 +77,9 @@ jobs:
- run: cargo update -p async-compression --precise 0.4.23
- run: cargo update -p flate2 --precise 1.0.35
- uses: dtolnay/rust-toolchain@1.64
- uses: Swatinem/rust-cache@v2
with:
save-if: ${{ github.ref == 'refs/heads/main' }}
- run: cargo check -p tower-http --all-features

style:
Expand Down Expand Up @@ -107,5 +120,7 @@ jobs:
with:
tool: cargo-check-external-types@0.4.0
- uses: Swatinem/rust-cache@v2
with:
save-if: ${{ github.ref == 'refs/heads/main' }}
- run: cargo check-external-types --all-features
working-directory: tower-http