File tree Expand file tree Collapse file tree 2 files changed +27
-9
lines changed Expand file tree Collapse file tree 2 files changed +27
-9
lines changed Original file line number Diff line number Diff line change @@ -232,6 +232,25 @@ 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
+ else
247
+ echo "ccache not available"
248
+ fi
249
+ - save_cache :
250
+ key : ccache-v1-<<parameters.os>>-{{ arch }}-{{ .Branch }}-{{ checksum "/tmp/all-cmake-files.txt" }}
251
+ paths :
252
+ - ~/.ccache
253
+
235
254
setup_prerelease_commit_hash :
236
255
steps :
237
256
- run :
@@ -255,15 +274,8 @@ commands:
255
274
- run :
256
275
name : Build
257
276
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
277
+ - finalize_ccache :
278
+ os : <<parameters.os>>
267
279
268
280
run_build_ossfuzz :
269
281
steps :
@@ -1290,10 +1302,14 @@ jobs:
1290
1302
MAKEFLAGS : -j 10
1291
1303
steps :
1292
1304
- checkout
1305
+ - setup_ccache :
1306
+ os : ems
1293
1307
- run :
1294
1308
name : Build
1295
1309
command : |
1296
1310
scripts/ci/build_emscripten.sh
1311
+ - finalize_ccache :
1312
+ os : ems
1297
1313
- store_artifacts :
1298
1314
path : upload/soljson.js
1299
1315
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