diff options
author | Richard Menzies <52405405+WizardOhio24@users.noreply.github.com> | 2020-11-07 20:39:57 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-07 21:39:57 +0100 |
commit | 638c12518e640a83625ac9014c9608e0a65d1d90 (patch) | |
tree | cc2cba221d2ea3f6b8f6c5b94b1c6ba51ca7751c | |
parent | a0ba3d461e06a44ee7852ec8462fec4641d0c253 (diff) |
Add cache to GithubActions (#410)
-rw-r--r-- | .github/workflows/ci.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c2c9eb9d..9b6fb6b1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: |