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

Commit f1d7d1d

Browse files
authored
Revert "prepopulate CARGO_HOME caches (#5505)" (#5533)
This reverts commit 25fb92a.
1 parent 8cee4fe commit f1d7d1d

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -63,24 +63,6 @@ variables:
6363
- rustup show
6464
- cargo --version
6565
- sccache -s
66-
# if there is no directory for this $CI_COMMIT_REF_NAME/$CI_JOB_NAME
67-
# create such directory and
68-
# copy recursively all the files from the newest dir which has $CI_JOB_NAME, if it exists
69-
- |
70-
if [[ ! -d $CARGO_HOME ]]; then
71-
mkdir -p /ci-cache/${CI_PROJECT_NAME}/cargo/${CI_COMMIT_REF_NAME};
72-
FRESH_CACHE=$(find /ci-cache/${CI_PROJECT_NAME}/cargo -mindepth 2 -maxdepth 2 \
73-
-type d -name ${CI_JOB_NAME} -exec stat --printf="%Y\t%n\n" {} \; |sort -n -r |head -1 |cut -f2);
74-
if [[ -d $FRESH_CACHE ]]; then
75-
echo "____Using" "$FRESH_CACHE" "to prepopulate the cache____";
76-
cp -r "${FRESH_CACHE}" "${CARGO_HOME}";
77-
touch ${CARGO_HOME}/config;
78-
else
79-
echo "_____No such cargo dir, proceeding from scratch_____";
80-
fi
81-
else
82-
echo "____No need to prepopulate the cache____";
83-
fi
8466
only:
8567
- master
8668
- /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
@@ -96,7 +78,7 @@ variables:
9678
dependencies: []
9779
interruptible: true
9880
tags:
99-
- ci2
81+
- linux-docker
10082

10183
.build-only: &build-only
10284
only:

0 commit comments

Comments
 (0)