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 e866e36 commit ec28fda
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 @@ -53,6 +56,9 @@ jobs:
with:
toolchain: ${{ matrix.toolchain }}

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

- name: Test
env:
CARGO_TERM_COLOR: never
Expand All @@ -76,5 +82,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 ec28fda

Please sign in to comment.