This repository was archived by the owner on Oct 28, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +38
-2
lines changed
Expand file tree Collapse file tree 1 file changed +38
-2
lines changed Original file line number Diff line number Diff line change @@ -89,13 +89,49 @@ defaults:
8989 $GCOV --version
9090 codecov --required --gcov-exec "$GCOV" --gcov-root ~/build
9191
92+ save-ccache : &save-ccache
93+ save_cache :
94+ name : " Save ccache"
95+ key : ccache-1-{{arch}}-{{checksum "compiler.version"}}-{{.Branch}}-{{epoch}}
96+ paths :
97+ - ~/.ccache
98+
99+ restore-ccache : &restore-ccache
100+ restore_cache :
101+ name : " Restore ccache"
102+ keys :
103+ - ccache-1-{{arch}}-{{checksum "compiler.version"}}-{{.Branch}}
104+ - ccache-1-{{arch}}-{{checksum "compiler.version"}}
105+ paths :
106+ - ~/.ccache
107+
108+ setup-ccache : &setup-ccache
109+ run :
110+ name : " Setup ccache"
111+ command : |
112+ ccache --version
113+ ccache --show-stats
114+ ccache --zero-stats
115+ ccache --max-size=3G
116+
117+ stat-ccache : &stat-ccache
118+ run :
119+ name : " Show ccache stats"
120+ command : |
121+ ccache --show-stats
122+
123+
92124 linux-steps : &linux-steps
93125 - checkout
94126 - *update-submodules
95127 - *environment-info
96128 - *restore-deps-cache
129+ - *restore-ccache
130+ - *setup-ccache
97131 - *configure
98132 - *build
133+ - *stat-ccache
134+ - *save-ccache
99135 - *save-deps-cache
100136 - *store-package
101137 - *restore-ethash-dag
@@ -122,7 +158,7 @@ jobs:
122158 - BUILD_PARALLEL_JOBS : 8
123159 - TEST_PARALLEL_JOBS : 8
124160 docker :
125- - image : ethereum/cpp-build-env
161+ - image : ethereum/cpp-build-env:1
126162 steps : *linux-steps
127163
128164 linux-gcc6 :
@@ -138,7 +174,7 @@ jobs:
138174 # - CMAKE_OPTIONS: -DSANITIZE=address
139175 # - ASAN_OPTIONS: detect_leaks=0
140176 docker :
141- - image : ethereum/cpp-build-env
177+ - image : ethereum/cpp-build-env:1
142178 steps : *linux-steps
143179
144180 macos-xcode90 :
You can’t perform that action at this time.
0 commit comments