From d6264c17f89c579d7984d9c5e60754acfa917725 Mon Sep 17 00:00:00 2001 From: rhysd Date: Thu, 31 Oct 2019 14:52:56 +0900 Subject: [PATCH] Add hash of Cargo.lock to keys of caches --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f4a274d..ccd3b66 100644 --- a/README.md +++ b/README.md @@ -64,17 +64,17 @@ See [Examples](examples.md) uses: actions/cache@preview with: path: ~/.cargo/registry - key: ${{ runner.os }}-cargo-registry + key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} - name: Cache cargo index uses: actions/cache@preview with: path: ~/.cargo/git - key: ${{ runner.os }}-cargo-index + key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} - name: Cache cargo build uses: actions/cache@preview with: path: target - key: ${{ runner.os }}-cargo-build-target + key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} ``` ## Cache Limits