Add cache for rust repository
This commit is contained in:
parent
7c9db86fa1
commit
28b11119e7
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…
x
Reference in New Issue
Block a user