[CI] Hash Cargo.lock in addition to toolchain for target dir cache

This commit is contained in:
bjorn3 2020-05-10 17:36:13 +02:00
parent ac14f8d4de
commit 2e5282f929

View file

@ -43,7 +43,7 @@ jobs:
uses: actions/cache@v1.1.2
with:
path: target
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('rust-toolchain') }}
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }}
- name: Prepare dependencies
run: |