ci: cache dependencies.
This commit is contained in:
parent
a1e3c18d13
commit
932342f84f
@ -5,6 +5,17 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
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
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@ -30,7 +41,7 @@ jobs:
|
|||||||
~/.cargo/registry/cache/
|
~/.cargo/registry/cache/
|
||||||
~/.cargo/git/db/
|
~/.cargo/git/db/
|
||||||
target/
|
target/
|
||||||
key: ${{ runner.os }}-cargo
|
key: ${{ steps.restore-dependencies.outputs.cache-primarily-key }}
|
||||||
|
|
||||||
- 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