ci: cache dependencies.
Some checks failed
Gitea Actions Demo / build (push) Failing after 2m16s
Gitea Actions Demo / docker (push) Has been skipped

This commit is contained in:
Ivan Li 2023-05-21 17:02:08 +08:00
parent e2c3d18d63
commit 585b4420b0

View File

@ -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