Skip to content

Commit

Permalink
.github: add rust cache action
Browse files Browse the repository at this point in the history
This should reduce CI time.
  • Loading branch information
tamird committed Nov 7, 2023
1 parent c77c0ea commit c41a2c3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
with:
components: rustfmt, clippy

- name: Cache
uses: Swatinem/rust-cache@v2

- name: Check
run: cargo check --all-features --all-targets

Expand Down Expand Up @@ -52,6 +55,9 @@ jobs:
with:
toolchain: ${{ matrix.toolchain }}

- name: Cache
uses: Swatinem/rust-cache@v2

- name: Test
env:
SNAPSHOT_DIR: rust-${{ matrix.toolchain }}
Expand All @@ -74,5 +80,8 @@ jobs:
with:
toolchain: ${{ steps.metadata.outputs.rust-version }}

- name: Cache
uses: Swatinem/rust-cache@v2

- name: Build
run: cargo build

0 comments on commit c41a2c3

Please sign in to comment.