Merge pull request #201 from GuillaumeGomez/cache-rust

Add cache for rust repository
This commit is contained in:
antoyo 2022-07-10 10:42:04 -04:00 committed by GitHub
commit 22e4f181cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -95,6 +95,15 @@ jobs:
path: target
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('rust-toolchain') }}
- name: Cache rust repository
# We only clone the rust repository for rustc tests
if: ${{ contains(matrix.commands, 'rustc') }}
uses: actions/cache@v2
id: cache-rust-repository
with:
path: rust
key: ${{ runner.os }}-packages-${{ hashFiles('rust/.git/HEAD') }}
- name: Build
run: |
./prepare_build.sh