Skip to content

Commit

Permalink
chore(ci): cache rust dependency (hyperium#3353)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored and 0xE282B0 committed Jan 12, 2024
1 parent 6df95d9 commit e8b532d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ jobs:
with:
toolchain: ${{ matrix.rust }}

- uses: Swatinem/rust-cache@v2

- name: Test
run: cargo test ${{ matrix.features }}

Expand All @@ -109,6 +111,8 @@ jobs:
with:
toolchain: ${{ steps.msrv.outputs.version }}

- uses: Swatinem/rust-cache@v2

- name: Check
run: cargo check --features full

Expand All @@ -126,6 +130,8 @@ jobs:
with:
components: miri

- uses: Swatinem/rust-cache@v2

- name: Test
# Can't enable tcp feature since Miri does not support the tokio runtime
run: MIRIFLAGS="-Zmiri-disable-isolation" cargo miri test --features http1,http2,client,server,nightly
Expand All @@ -144,6 +150,8 @@ jobs:
- name: Install cargo-hack
uses: taiki-e/install-action@cargo-hack

- uses: Swatinem/rust-cache@v2

- name: check --feature-powerset
run: cargo hack --no-dev-deps check --feature-powerset --depth 2 --skip ffi,tracing
env:
Expand All @@ -160,6 +168,8 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- uses: Swatinem/rust-cache@v2

- name: Build FFI
env:
RUSTFLAGS: --cfg hyper_unstable_ffi
Expand Down Expand Up @@ -193,6 +203,8 @@ jobs:
with:
tool: cargo-expand

- uses: Swatinem/rust-cache@v2

- name: Build FFI
env:
RUSTFLAGS: --cfg hyper_unstable_ffi
Expand All @@ -212,6 +224,8 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@nightly

- uses: Swatinem/rust-cache@v2

- name: cargo doc
run: cargo rustdoc --features full,ffi -- --cfg docsrs --cfg hyper_unstable_ffi -D broken-intra-doc-links

Expand All @@ -233,6 +247,8 @@ jobs:
with:
tool: [email protected]

- uses: Swatinem/rust-cache@v2

- name: check-external-types
run: cargo check-external-types --config .github/workflows/external-types.toml

Expand All @@ -249,6 +265,8 @@ jobs:
- name: Install cargo-udeps
uses: taiki-e/install-action@cargo-udeps

- uses: Swatinem/rust-cache@v2

- name: Check unused dependencies on default features
run: cargo udeps

Expand Down

0 comments on commit e8b532d

Please sign in to comment.