From 190d3c12da457fb8b83eb157610941907b6c3f49 Mon Sep 17 00:00:00 2001 From: GroovieGermanikus Date: Wed, 6 Sep 2023 18:00:46 +0200 Subject: [PATCH] adopt cache settings from https://ectobit.com/blog/speed-up-github-actions-rust-pipelines/ --- .github/workflows/test.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3bf160a..f6cb543 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -42,9 +42,13 @@ jobs: - uses: actions/cache@v2 with: path: | - ~/.cargo/registry - ~/.cargo/git - key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE}} + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + restore-keys: ${{ runner.os }}-cargo- - name: cargo fmt uses: actions-rs/cargo@v1