File tree Expand file tree Collapse file tree 2 files changed +28
-9
lines changed Expand file tree Collapse file tree 2 files changed +28
-9
lines changed Original file line number Diff line number Diff line change @@ -232,6 +232,26 @@ commands:
232
232
echo "ccache not available, skipping configuration"
233
233
fi
234
234
235
+ finalize_ccache :
236
+ parameters :
237
+ os :
238
+ type : string
239
+ steps :
240
+ - run :
241
+ name : Show ccache stats
242
+ command : |
243
+ if command -v ccache &> /dev/null; then
244
+ echo "ccache final stats:"
245
+ ccache --show-stats
246
+ ccache --show-compression-stats
247
+ else
248
+ echo "ccache not available"
249
+ fi
250
+ - save_cache :
251
+ key : ccache-v1-<<parameters.os>>-{{ arch }}-{{ .Branch }}-{{ checksum "/tmp/all-cmake-files.txt" }}
252
+ paths :
253
+ - ~/.ccache
254
+
235
255
setup_prerelease_commit_hash :
236
256
steps :
237
257
- run :
@@ -255,15 +275,8 @@ commands:
255
275
- run :
256
276
name : Build
257
277
command : scripts/ci/build.sh
258
- - run :
259
- name : Show ccache stats
260
- command : |
261
- echo "ccache final stats:"
262
- ccache --show-stats
263
- - save_cache :
264
- key : ccache-v1-<<parameters.os>>-{{ arch }}-{{ .Branch }}-{{ checksum "/tmp/all-cmake-files.txt" }}
265
- paths :
266
- - ~/.ccache
278
+ - finalize_ccache :
279
+ os : <<parameters.os>>
267
280
268
281
run_build_ossfuzz :
269
282
steps :
@@ -1290,10 +1303,14 @@ jobs:
1290
1303
MAKEFLAGS : -j 10
1291
1304
steps :
1292
1305
- checkout
1306
+ - setup_ccache :
1307
+ os : ems
1293
1308
- run :
1294
1309
name : Build
1295
1310
command : |
1296
1311
scripts/ci/build_emscripten.sh
1312
+ - finalize_ccache :
1313
+ os : ems
1297
1314
- store_artifacts :
1298
1315
path : upload/soljson.js
1299
1316
destination : soljson.js
Original file line number Diff line number Diff line change @@ -74,6 +74,8 @@ function build() {
74
74
-DBoost_USE_STATIC_LIBS=1 \
75
75
-DBoost_USE_STATIC_RUNTIME=1 \
76
76
-DCMAKE_CXX_FLAGS=" ${CMAKE_CXX_FLAGS} " \
77
+ -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
78
+ -DCMAKE_C_COMPILER_LAUNCHER=ccache \
77
79
-DTESTS=0 \
78
80
..
79
81
make soljson
You can’t perform that action at this time.
0 commit comments