Add cache to GithubActions (#410)

This commit is contained in:
Richard Menzies 2020-11-07 20:39:57 +00:00 committed by GitHub
parent a0ba3d461e
commit 638c12518e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,6 +21,14 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Restore cargo cache
uses: actions/cache@v2
env:
cache-name: cache-cargo-crates
with:
path: ~/.cargo
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.rust }}-${{ hashFiles('Cargo.lock') }}
- name: Install Rust
uses: actions-rs/toolchain@v1
with: