From cc2d767a726ddd654506e76169ec14b20dc75915 Mon Sep 17 00:00:00 2001 From: Alex Tokarev Date: Fri, 21 May 2021 20:41:57 +0300 Subject: [PATCH] Update Rust directories recommended for caching (#433) This commit applies the suggestion from The Cargo Book: https://doc.rust-lang.org/cargo/guide/cargo-home.html#caching-the-cargo-home-in-ci --- examples.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/examples.md b/examples.md index eff7fac..7fb2ffc 100644 --- a/examples.md +++ b/examples.md @@ -476,9 +476,11 @@ whenever possible: - uses: actions/cache@v2 with: path: | - ~/.cargo/registry - ~/.cargo/git - target + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} ```