Adding caching to CI
This commit is contained in:
parent
dbb41d2691
commit
32e6e80c7d
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
@ -19,6 +19,15 @@ jobs:
|
||||
with:
|
||||
version: 'latest'
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
- name: Install musl-tools
|
||||
run: sudo apt-get install musl-tools
|
||||
- name: Build
|
||||
|
9
.github/workflows/rust.yml
vendored
9
.github/workflows/rust.yml
vendored
@ -27,6 +27,15 @@ jobs:
|
||||
with:
|
||||
version: 'latest'
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
- name: Install musl-tools
|
||||
run: sudo apt-get install musl-tools
|
||||
- name: Build
|
||||
|
Loading…
Reference in New Issue
Block a user