cd.yaml: add caching for projects dependencies
Some checks failed
Build && Deploy / cargo build (push) Failing after 32s
Some checks failed
Build && Deploy / cargo build (push) Failing after 32s
This commit is contained in:
parent
11267704c0
commit
4827ce030c
@ -25,8 +25,25 @@ jobs:
|
||||
path: |
|
||||
~/.rustup/toolchains
|
||||
key: ${{ steps.cache-toolchain.outputs.cache-primary-key }}
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Restore cached cargo dependencies
|
||||
id: cache-toolchain
|
||||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
path: |
|
||||
~/.rustup/toolchains
|
||||
key: ${{ runner.os }}-rust-toolchain
|
||||
- run: cargo build --release --target x86_64-unknown-linux-gnu
|
||||
- name: Save cached cargo dependencies
|
||||
id: cache-toolchain
|
||||
uses: actions/cache/save@v4
|
||||
with:
|
||||
path: |
|
||||
~/.rustup/toolchains
|
||||
key: ${{ steps.cache-toolchain.outputs.cache-primary-key }}
|
||||
|
||||
- name: Upload Release Binary
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user