Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 68d1ee9

Browse files
committed
Cache only /cargo/ directory.
1 parent c74da82 commit 68d1ee9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.gitlab-ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ variables:
1212
BUILD_ARCH: amd64
1313
CARGO_TARGET: x86_64-unknown-linux-gnu
1414

15+
cache:
16+
key: "${CI_JOB_NAME}"
17+
policy: pull
18+
paths:
19+
- ${CI_PROJECT_DIR}/cargo/
20+
1521
.releaseable_branches: # list of git refs for building GitLab artifacts (think "pre-release binaries")
1622
only: &releaseable_branches
1723
- master

0 commit comments

Comments
 (0)