Add cache for rust repository
This commit is contained in:
parent
7c9db86fa1
commit
28b11119e7
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