Try to restore caching on CI

This commit is contained in:
Aleksey Kladov 2020-01-07 17:36:09 +01:00
parent 072f0d323b
commit ca2a9b50c0

View file

@ -39,7 +39,19 @@ jobs:
override: true override: true
components: rustfmt, rust-src components: rustfmt, rust-src
- name: Cargo target cache - name: Cache cargo registry
uses: actions/cache@v1
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo index
uses: actions/cache@v1
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo target dir
uses: actions/cache@v1 uses: actions/cache@v1
with: with:
path: target path: target