From c287efdf377c8151289cc6c040349995de4d85d6 Mon Sep 17 00:00:00 2001 From: Avery Harnish Date: Thu, 25 Mar 2021 13:51:27 -0500 Subject: [PATCH] chore: adds rust caching to clippy --- .github/workflows/lint.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9a17884e4..04241532d 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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