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
804328c9
Commit
804328c9
authored
2 years ago
by
Bastian Köcher
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Remove old caching stuff from CI (#1154)
parent
94373329
Branches
Branches containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cumulus/.gitlab-ci.yml
+0
-3
0 additions, 3 deletions
cumulus/.gitlab-ci.yml
cumulus/scripts/ci/pre_cache.sh
+0
-28
0 additions, 28 deletions
cumulus/scripts/ci/pre_cache.sh
with
0 additions
and
31 deletions
cumulus/.gitlab-ci.yml
+
0
−
3
View file @
804328c9
...
...
@@ -13,11 +13,9 @@ variables: &default-vars
GIT_STRATEGY
:
fetch
GIT_DEPTH
:
100
CARGO_INCREMENTAL
:
0
CARGO_TARGET_DIR
:
"
/ci-cache/${CI_PROJECT_NAME}/targets/${CI_COMMIT_REF_NAME}/${CI_JOB_NAME}"
CI_IMAGE
:
"
paritytech/ci-linux:production"
DOCKER_OS
:
"
debian:stretch"
ARCH
:
"
x86_64"
WASM_BUILD_WORKSPACE_HINT
:
"
/builds/parity/cumulus/"
.rust-info-script
:
&rust-info-script
-
rustup show
...
...
@@ -37,7 +35,6 @@ variables: &default-vars
image
:
"
${CI_IMAGE}"
before_script
:
-
*rust-info-script
-
./scripts/ci/pre_cache.sh
-
sccache -s
retry
:
max
:
2
...
...
This diff is collapsed.
Click to expand it.
cumulus/scripts/ci/pre_cache.sh
deleted
100755 → 0
+
0
−
28
View file @
94373329
#!/bin/bash
set
-u
# 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
# cache lives in /ci-cache/${CI_PROJECT_NAME}/${2}/${CI_COMMIT_REF_NAME}/${CI_JOB_NAME}
function
prepopulate
{
if
[[
!
-d
$1
]]
;
then
mkdir
-p
"/ci-cache/
$CI_PROJECT_NAME
/
$2
/
$CI_COMMIT_REF_NAME
"
;
FRESH_CACHE
=
$(
find
"/ci-cache/
$CI_PROJECT_NAME
/
$2
"
-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____"
;
time cp
-r
"
$FRESH_CACHE
"
"
$1
"
;
else
echo
"_____No such
$2
dir, proceeding from scratch_____"
;
fi
else
echo
"____No need to prepopulate
$2
cache____"
;
fi
}
# CARGO_HOME cache is still broken so would be handled some other way.
prepopulate
"
$CARGO_TARGET_DIR
"
targets
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