Skip to content

Commit 22e4f18

Browse files
authored
Merge pull request rust-lang#201 from GuillaumeGomez/cache-rust
Add cache for rust repository
2 parents 7c9db86 + 28b1111 commit 22e4f18

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,15 @@ jobs:
9595
path: target
9696
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('rust-toolchain') }}
9797

98+
- name: Cache rust repository
99+
# We only clone the rust repository for rustc tests
100+
if: ${{ contains(matrix.commands, 'rustc') }}
101+
uses: actions/cache@v2
102+
id: cache-rust-repository
103+
with:
104+
path: rust
105+
key: ${{ runner.os }}-packages-${{ hashFiles('rust/.git/HEAD') }}
106+
98107
- name: Build
99108
run: |
100109
./prepare_build.sh

0 commit comments

Comments
 (0)