Skip to content

Commit

Permalink
chore(ci): cache rust dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored and seanmonstar committed Nov 8, 2023
1 parent e2c223a commit 4899703
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ jobs:
with:
toolchain: ${{ matrix.rust }}

- uses: Swatinem/rust-cache@v2

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

Expand Down Expand Up @@ -108,6 +110,8 @@ jobs:
with:
toolchain: ${{ matrix.rust }}

- uses: Swatinem/rust-cache@v2

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

Expand Down Expand Up @@ -143,6 +147,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

Expand All @@ -166,6 +172,8 @@ jobs:
with:
toolchain: ${{ matrix.rust }}

- uses: Swatinem/rust-cache@v2

- name: Check
run: cargo check --features full,backports,deprecated

Expand All @@ -185,6 +193,8 @@ jobs:
with:
tool: cbindgen

- uses: Swatinem/rust-cache@v2

- name: Build FFI
run: cargo rustc --features client,http1,http2,ffi --crate-type cdylib
env:
Expand Down

0 comments on commit 4899703

Please sign in to comment.