From 585b4420b02d987e1f9d9ee87789f330faccb4c2 Mon Sep 17 00:00:00 2001 From: Ivan Li Date: Sun, 21 May 2023 17:02:08 +0800 Subject: [PATCH] ci: cache dependencies. --- .gitea/workflows/built-bin.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/built-bin.yaml b/.gitea/workflows/built-bin.yaml index 04b81e9..9f9945d 100644 --- a/.gitea/workflows/built-bin.yaml +++ b/.gitea/workflows/built-bin.yaml @@ -24,8 +24,13 @@ jobs: - name: Cache Dependencies uses: https://github.com/actions/cache@v3 with: - path: ./target - key: ${{ runner.os }}-release-${{ hashFiles('**/Cargo.lock') }} + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - name: Cache Executable Binary uses: https://github.com/actions/cache@v3