ci: cache dependencies.
This commit is contained in:
parent
6e29c71b68
commit
1a73c662a8
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user