From 7f7c372e59211ed8aad4d5e3a881edb20877381f Mon Sep 17 00:00:00 2001 From: Joel Wachsler Date: Mon, 11 Jul 2022 02:16:38 +0200 Subject: [PATCH] More caching --- .github/workflows/ci.yml | 7 ++++++- .github/workflows/release.yml | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3881030..b37f3c3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: - uses: actions/cache@v2 with: path: ~/.cargo/registry - key: ${{ runner.os }}-cargo-registry-${{ hashFiles('Cargo.lock') }} + key: ${{ runner.os }}-cargo-test-${{ hashFiles('Cargo.lock') }} - name: Install latest stable uses: actions-rs/toolchain@v1 @@ -57,6 +57,11 @@ jobs: steps: - uses: actions/checkout@v3 + - uses: actions/cache@v2 + with: + path: ~/.cargo/registry + key: ${{ runner.os }}-cargo-clippy-${{ hashFiles('Cargo.lock') }} + - name: Install latest stable uses: actions-rs/toolchain@v1 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9b9e1ad..d42ae12 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,10 +8,11 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 + - uses: actions/cache@v2 with: path: ~/.cargo/registry - key: ${{ runner.os }}-cargo-registry-${{ hashFiles('Cargo.lock') }} + key: ${{ runner.os }}-cargo-release-${{ hashFiles('Cargo.lock') }} - name: Install latest stable uses: actions-rs/toolchain@v1