Add cache to GithubActions
@@ -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:
