Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Gaudi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
Gaudi
Gaudi
Commits
4f1cb94c
Commit
4f1cb94c
authored
5 years ago
by
Marco Clemencic
Browse files
Options
Downloads
Patches
Plain Diff
Use Gitlab-CI cache to keep ccache data
parent
b80b6328
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!890
Use Gitlab-CI cache to keep ccache data
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+11
-4
11 additions, 4 deletions
.gitlab-ci.yml
ci-utils/build
+1
-8
1 addition, 8 deletions
ci-utils/build
ci-utils/test_public_headers_build
+1
-6
1 addition, 6 deletions
ci-utils/test_public_headers_build
with
13 additions
and
18 deletions
.gitlab-ci.yml
+
11
−
4
View file @
4f1cb94c
...
...
@@ -28,8 +28,12 @@ build:gcc8:opt:
artifacts
:
paths
:
-
${BUILDDIR}
-
.ccache
expire_in
:
1 week
cache
:
key
:
"
$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
paths
:
-
.ccache
build:gcc8:dbg
:
stage
:
build
...
...
@@ -43,8 +47,11 @@ build:gcc8:dbg:
artifacts
:
paths
:
-
${BUILDDIR}
-
.ccache
expire_in
:
1 week
cache
:
key
:
"
$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
paths
:
-
.ccache
check-formatting
:
stage
:
build
...
...
@@ -130,10 +137,10 @@ test_public_headers_build:
BUILDDIR
:
build-opt
script
:
-
ci-utils/test_public_headers_build
artifacts
:
cache
:
key
:
"
$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
paths
:
-
.ccache
expire_in
:
1 week
# see https://gitlab.cern.ch/gitlabci-examples/deploy_eos for the details
# of the configuration
...
...
This diff is collapsed.
Click to expand it.
ci-utils/build
+
1
−
8
View file @
4f1cb94c
...
...
@@ -2,14 +2,7 @@
.
$
(
dirname
$
0
)
/
env_setup
.
sh
if
[
-
n
"
${CI}
"
]
;
then
url
=
"
${CI_PROJECT_URL}/-/jobs/artifacts/${CI_COMMIT_REF_NAME}/download?job=${CI_JOB_NAME}
"
echo
"
downloading
'
${url}
'"
curl
-
o
artifacts
.
zip
--
location
"
${url}
"
unzip
-
q
artifacts
.
zip
'
.ccache/*
'
||
true
fi
$
{
LCG_release_area
}
/
ccache
/
$
{
CCACHE_VERSION
}
/
$
{
BINARY_TAG
}
/
bin
/
ccache
-
z
-
M
1
G
$
{
LCG_release_area
}
/
ccache
/
$
{
CCACHE_VERSION
}
/
$
{
BINARY_TAG
}
/
bin
/
ccache
-
z
-
F
2000
echo
'
set(CMAKE_USE_CCACHE ON CACHE BOOL
""
)
'
>>
cache_preload
.
cmake
...
...
This diff is collapsed.
Click to expand it.
ci-utils/test_public_headers_build
+
1
−
6
View file @
4f1cb94c
...
...
@@ -2,12 +2,7 @@
.
$(
dirname
$0
)
/env_setup.sh
if
[
-n
"
${
CI
}
"
]
;
then
url
=
"
${
CI_PROJECT_URL
}
/-/jobs/artifacts/
${
CI_COMMIT_REF_NAME
}
/download?job=
${
CI_JOB_NAME
}
"
echo
"downloading '
${
url
}
'"
curl
-o
artifacts.zip
--location
"
${
url
}
"
unzip
-q
artifacts.zip
'.ccache/*'
||
true
fi
${
LCG_release_area
}
/ccache/
${
CCACHE_VERSION
}
/
${
BINARY_TAG
}
/bin/ccache
-z
-F
2000
# make sure we do not re-run cmake
find
${
BUILDDIR
}
-type
f
-exec
touch
-d
$(
date
+@%s
)
\{
}
\;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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