Merge pull request #201 from GuillaumeGomez/cache-rust
Add cache for rust repository
This commit is contained in:
commit
22e4f181cb
1 changed files with 9 additions and 0 deletions
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue