From 34482d06a84fb575041cf6976a9c66a1a435b72b Mon Sep 17 00:00:00 2001 From: trivernis Date: Tue, 10 Nov 2020 22:14:23 +0100 Subject: [PATCH] Change cache key to use Cargo.lock Signed-off-by: trivernis --- .github/workflows/rust.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index ee4ce59..c369dd4 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -22,11 +22,11 @@ jobs: path: | target/**/build target/**/deps - key: ${{ runner.os }}-build-${{ hashFiles('**/package-lock.json') }} + target/**/incremental + key: ${{ runner.os }}-build-${{ hashFiles('Cargo.lock') }} restore-keys: | - ${{ runner.os }}-build-${{ hashFiles('**/package-lock.json') }} + ${{ runner.os }}-build-${{ hashFiles('Cargo.lock') }} ${{ runner.os }}-build- - ${{ runner.os }}- - name: Build run: cargo build --verbose - name: Run tests