Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): cache rust dependency #3353

Merged
merged 1 commit into from
Oct 18, 2023
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
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