ci: cache dependencies.
Some checks are pending
Gitea Actions Demo / docker (push) Has been skipped
Gitea Actions Demo / build (push) Has started running

This commit is contained in:
Ivan Li 2023-05-21 17:12:29 +08:00
parent a1e3c18d13
commit 932342f84f

View File

@ -5,6 +5,17 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Restore Dependencies
id: restore-dependencies
uses: https://github.com/actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo
- name: Check out repository code
uses: actions/checkout@v3
@ -30,7 +41,7 @@ jobs:
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo
key: ${{ steps.restore-dependencies.outputs.cache-primarily-key }}
- name: Cache Executable Binary
uses: https://github.com/actions/cache@v3