Skip to content

Commit

Permalink
workflow: add cache
Browse files Browse the repository at this point in the history
  • Loading branch information
KevFan committed Oct 12, 2023
1 parent 38f55ca commit d718c5e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ jobs:
profile: minimal
toolchain: stable
override: true
- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- uses: abelfodil/protoc-action@v1
with:
protoc-version: '3.19.4'
Expand All @@ -45,8 +54,6 @@ jobs:
- uses: supercharge/[email protected]
with:
redis-version: 5
# Nightly is required for code coverage with doctests
# https://github.com/taiki-e/cargo-llvm-cov/issues/2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand Down Expand Up @@ -77,6 +84,7 @@ jobs:
args: --all -- --check

clippy:
needs: check
name: Clippy
runs-on: ubuntu-latest
steps:
Expand All @@ -96,6 +104,7 @@ jobs:
args: --all-features --all-targets -- -D warnings

bench:
needs: check
name: Bench
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit d718c5e

Please sign in to comment.