Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Alam Ed Arias
SRB2
Commits
db7508f7
Commit
db7508f7
authored
1 month ago
by
Alam Ed Arias
Browse files
Options
Downloads
Patches
Plain Diff
GitLab CI: use "ccache --set-config" over tee on the ccache.conf file
parent
e06eead3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab/ci/jobs/alpine-3-gcc-makefile.yml
+5
-7
5 additions, 7 deletions
.gitlab/ci/jobs/alpine-3-gcc-makefile.yml
.gitlab/ci/jobs/alpine-3-gcc.yml
+5
-7
5 additions, 7 deletions
.gitlab/ci/jobs/alpine-3-gcc.yml
.gitlab/ci/templates/srb2ci.yml
+5
-7
5 additions, 7 deletions
.gitlab/ci/templates/srb2ci.yml
with
15 additions
and
21 deletions
.gitlab/ci/jobs/alpine-3-gcc-makefile.yml
+
5
−
7
View file @
db7508f7
...
...
@@ -58,26 +58,24 @@ Alpine 3 GCC Makefile:
-
-
|
# ccache_config
echo -e "\e[0Ksection_start:`date +%s`:ccache_config[collapsed=true]\r\e[0KSetting up ccache config"
-
mkdir --parents --verbose ~/.ccache/
-
touch ~/.ccache/ccache.conf
-
|
# cache.conf
echo Adding ccache configution option
-
|
# base_dir
echo base_dir = $PWD | tee -a ~/.ccache/ccache.conf
ccache --set-config base_dir=$CI_PROJECT_DIR
-
|
# cache_dir
echo cache_dir = $PWD/ccache | tee -a ~/.ccache
/ccache
.conf
ccache --set-config cache_dir=$CI_PROJECT_DIR/build
/ccache
-
|
# compiler_check
echo
compiler_check
=
content
| tee -a ~/.ccache/ccache.conf
ccache --set-config
compiler_check
=
content
-
|
# stats_log
echo stats_log = $PWD/ccache_statslog | tee -a ~/.ccache/ccache.conf
ccache --set-config stats_log=$CI_PROJECT_DIR/build/ccache_statslog
-
|
# max_size
echo max_size = 50M | tee -a ~/.ccache/ccache.conf
ccache --set-config max_size=300M
-
|
# ccache_config
echo -e "\e[0Ksection_end:`date +%s`:ccache_config\r\e[0K"
...
...
This diff is collapsed.
Click to expand it.
.gitlab/ci/jobs/alpine-3-gcc.yml
+
5
−
7
View file @
db7508f7
...
...
@@ -58,26 +58,24 @@ Alpine 3 GCC:
-
-
|
# ccache_config
echo -e "\e[0Ksection_start:`date +%s`:ccache_config[collapsed=true]\r\e[0KSetting up ccache config"
-
mkdir --parents --verbose ~/.ccache/
-
touch ~/.ccache/ccache.conf
-
|
# cache.conf
echo Adding ccache configution option
-
|
# base_dir
echo base_dir = $PWD | tee -a ~/.ccache/ccache.conf
ccache --set-config base_dir=$CI_PROJECT_DIR
-
|
# cache_dir
echo cache_dir = $PWD/ccache | tee -a ~/.ccache
/ccache
.conf
ccache --set-config cache_dir=$CI_PROJECT_DIR/build
/ccache
-
|
# compiler_check
echo
compiler_check
=
content
| tee -a ~/.ccache/ccache.conf
ccache --set-config
compiler_check
=
content
-
|
# stats_log
echo stats_log = $PWD/ccache_statslog | tee -a ~/.ccache/ccache.conf
ccache --set-config stats_log=$CI_PROJECT_DIR/build/ccache_statslog
-
|
# max_size
echo max_size = 50M | tee -a ~/.ccache/ccache.conf
ccache --set-config max_size=300M
-
|
# ccache_config
echo -e "\e[0Ksection_end:`date +%s`:ccache_config\r\e[0K"
...
...
This diff is collapsed.
Click to expand it.
.gitlab/ci/templates/srb2ci.yml
+
5
−
7
View file @
db7508f7
...
...
@@ -93,26 +93,24 @@
-
-
|
# ccache_config
echo -e "\e[0Ksection_start:`date +%s`:ccache_config[collapsed=true]\r\e[0KSetting up ccache config"
-
mkdir --parents --verbose ~/.ccache/
-
touch ~/.ccache/ccache.conf
-
|
# cache.conf
echo Adding ccache configution option
-
|
# base_dir
echo
base_dir
=
$CI_PROJECT_DIR
| tee --append ~/.ccache/ccache.conf
ccache --set-config
base_dir
=
$CI_PROJECT_DIR
-
|
# cache_dir
echo
cache_dir
=
$CI_PROJECT_DIR/build/ccache
| tee --append ~/.ccache/ccache.conf
ccache --set-config
cache_dir
=
$CI_PROJECT_DIR/build/ccache
-
|
# compiler_check
echo
compiler_check
=
content
| tee --append ~/.ccache/ccache.conf
ccache --set-config
compiler_check
=
content
-
|
# stats_log
echo
stats_log
=
$CI_PROJECT_DIR/build/ccache_statslog
| tee --append ~/.ccache/ccache.conf
ccache --set-config
stats_log
=
$CI_PROJECT_DIR/build/ccache_statslog
-
|
# max_size
echo
max_size
=
300M
| tee --append ~/.ccache/ccache.conf
ccache --set-config
max_size
=
300M
-
|
# ccache_config
echo -e "\e[0Ksection_end:`date +%s`:ccache_config\r\e[0K"
...
...
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