From 1402d613b5a9dba24cc3fb4ad9b905a50c4ed616 Mon Sep 17 00:00:00 2001 From: JameWade <47301518+JameWade@users.noreply.github.com> Date: Wed, 16 Oct 2024 12:55:42 +0800 Subject: [PATCH] Update ci.yml set up buildjet/cache@v3 & add path and key --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c3b869082..b31e154ab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,6 +39,13 @@ jobs: # before the cache plugin, as it uses the current rustc version as its cache key - uses: buildjet/cache@v3 with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} prefix-key: "v1-rust" - name: Set git config