Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: adds rust caching to clippy #365

Merged
merged 2 commits into from
Mar 26, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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