Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
polkadot-sdk
Commits
15f8078e
Commit
15f8078e
authored
5 years ago
by
Denis_P
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Revert "prepopulate CARGO_HOME caches (#5505)" (#5533)
This reverts commit
9dbcb11f
.
parent
308dbf1c
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
substrate/.gitlab-ci.yml
+1
-19
1 addition, 19 deletions
substrate/.gitlab-ci.yml
with
1 addition
and
19 deletions
substrate/.gitlab-ci.yml
+
1
−
19
View file @
15f8078e
...
...
@@ -63,24 +63,6 @@ variables:
-
rustup show
-
cargo --version
-
sccache -s
# if there is no directory for this $CI_COMMIT_REF_NAME/$CI_JOB_NAME
# create such directory and
# copy recursively all the files from the newest dir which has $CI_JOB_NAME, if it exists
-
|
if [[ ! -d $CARGO_HOME ]]; then
mkdir -p /ci-cache/${CI_PROJECT_NAME}/cargo/${CI_COMMIT_REF_NAME};
FRESH_CACHE=$(find /ci-cache/${CI_PROJECT_NAME}/cargo -mindepth 2 -maxdepth 2 \
-type d -name ${CI_JOB_NAME} -exec stat --printf="%Y\t%n\n" {} \; |sort -n -r |head -1 |cut -f2);
if [[ -d $FRESH_CACHE ]]; then
echo "____Using" "$FRESH_CACHE" "to prepopulate the cache____";
cp -r "${FRESH_CACHE}" "${CARGO_HOME}";
touch ${CARGO_HOME}/config;
else
echo "_____No such cargo dir, proceeding from scratch_____";
fi
else
echo "____No need to prepopulate the cache____";
fi
only
:
-
master
-
/^v[0-9]+\.[0-9]+.*$/
# i.e. v1.0, v2.1rc1
...
...
@@ -96,7 +78,7 @@ variables:
dependencies
:
[]
interruptible
:
true
tags
:
-
ci2
-
linux-docker
.build-only
:
&build-only
only
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment