This repository was archived by the owner on Nov 15, 2023. It is now read-only.
File tree 1 file changed +1
-19
lines changed
1 file changed +1
-19
lines changed Original file line number Diff line number Diff line change @@ -63,24 +63,6 @@ variables:
63
63
- rustup show
64
64
- cargo --version
65
65
- 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
84
66
only :
85
67
- master
86
68
- /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
@@ -96,7 +78,7 @@ variables:
96
78
dependencies : []
97
79
interruptible : true
98
80
tags :
99
- - ci2
81
+ - linux-docker
100
82
101
83
.build-only : &build-only
102
84
only :
You can’t perform that action at this time.
0 commit comments