Skip to content

Commit

Permalink
chore: adds rust caching to clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
EverlastingBugstopper committed Mar 25, 2021
1 parent e20be67 commit 41ee741
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,23 @@ jobs:
rustup default stable
rustup component add rustfmt
rustup component add clippy
- name: Cache Cargo registry
uses: actions/cache@v1
with:
path: ~/.cargo/registry
key: linux-stable-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
linux-stable-cargo-registry-
- name: Cache Cargo index
uses: actions/cache@v1
with:
path: ~/.cargo/git
key: linux-stable-cargo-index-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
linux-stable-cargo-index-
- name: Check formatting
run: cargo fmt --all -- --check

Expand Down

0 comments on commit 41ee741

Please sign in to comment.