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 committed Nov 8, 2023
1 parent 4dcbb3b commit 586e687
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 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 Expand Up @@ -213,6 +223,8 @@ jobs:
with:
tool: cbindgen

- uses: Swatinem/rust-cache@v2

- name: Build FFI
run: cargo build --features client,http1,http2,ffi
env:
Expand Down

0 comments on commit 586e687

Please sign in to comment.