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

This commit is contained in:
Ivan Li 2023-05-21 23:27:40 +08:00
parent 6e29c71b68
commit 1a73c662a8

View File

@ -37,12 +37,6 @@ jobs:
toolchain: stable toolchain: stable
override: true override: true
- id: tag
uses: https://github.com/Maxyme/get-release-or-tag@v2
- name: Build
run: cargo build --release
- name: Cache Dependencies - name: Cache Dependencies
uses: https://github.com/actions/cache@v3 uses: https://github.com/actions/cache@v3
with: with:
@ -52,7 +46,13 @@ jobs:
~/.cargo/registry/cache/ ~/.cargo/registry/cache/
~/.cargo/git/db/ ~/.cargo/git/db/
target/ target/
key: ${{ steps.restore-dependencies.outputs.cache-primarily-key }} key: ${{ steps.restore-dependencies.outputs.cache-primary-key }}
- id: tag
uses: https://github.com/Maxyme/get-release-or-tag@v2
- name: Build
run: cargo build --release
- name: Cache Executable Binary - name: Cache Executable Binary
uses: https://github.com/actions/cache@v3 uses: https://github.com/actions/cache@v3