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