@@ -217,10 +217,12 @@ commands:
217
217
- restore_libsodium
218
218
- restore_cache :
219
219
keys :
220
- - ' go-mod-1-14-7-v2 -{{ arch }}-{{ checksum "go.mod" }}-{{ checksum "go.sum" }}'
220
+ - ' go-mod-1.17.9-v3 -{{ arch }}-{{ checksum "go.mod" }}-{{ checksum "go.sum" }}'
221
221
- restore_cache :
222
222
keys :
223
- - ' go-cache-v2-{{ .Environment.CIRCLE_STAGE }}-'
223
+ - ' go-cache-v3-{{ arch }}-{{ .Branch }}-{{ .Revision }}'
224
+ - ' go-cache-v3-{{ arch }}-{{ .Branch }}-'
225
+ - ' go-cache-v3-{{ arch }}-'
224
226
- run :
225
227
name : scripts/travis/build.sh --make_debug
226
228
command : |
@@ -233,11 +235,11 @@ commands:
233
235
scripts/travis/build.sh --make_debug
234
236
- cache_libsodium
235
237
- save_cache :
236
- key : ' go-mod-1-14-7-v2 -{{ arch }}-{{ checksum "go.mod" }}-{{ checksum "go.sum" }}'
238
+ key : ' go-mod-1.17.9-v3 -{{ arch }}-{{ checksum "go.mod" }}-{{ checksum "go.sum" }}'
237
239
paths :
238
240
- << parameters.build_dir >>/go/pkg/mod
239
241
- save_cache :
240
- key : ' go-cache-v2 -{{ .Environment.CIRCLE_STAGE }}-{{ .Environment.CIRCLE_BUILD_NUM }}'
242
+ key : ' go-cache-v3 -{{ arch }}-{{ .Branch }}-{{ .Revision }}'
241
243
paths :
242
244
- tmp/go-cache
243
245
- persist_to_workspace :
@@ -257,7 +259,7 @@ commands:
257
259
mkdir -p tmp
258
260
find crypto/libsodium-fork -type f -exec openssl md5 "{}" + > tmp/libsodium.md5
259
261
- save_cache :
260
- key : ' libsodium-fork-v2-{{ .Environment.CIRCLE_STAGE }}-{{ checksum "tmp/libsodium.md5" }}'
262
+ key : ' libsodium-fork-v2-{{ arch }}-{{ checksum "tmp/libsodium.md5" }}'
261
263
paths :
262
264
- crypto/libs
263
265
@@ -271,7 +273,7 @@ commands:
271
273
find crypto/libsodium-fork -type f -exec openssl md5 "{}" + > tmp/libsodium.md5
272
274
- restore_cache :
273
275
keys :
274
- - ' libsodium-fork-v2-{{ .Environment.CIRCLE_STAGE }}-{{ checksum "tmp/libsodium.md5" }}'
276
+ - ' libsodium-fork-v2-{{ arch }}-{{ checksum "tmp/libsodium.md5" }}'
275
277
276
278
generic_test :
277
279
description : Run build tests from build workspace, for re-use by diferent architectures
@@ -301,7 +303,9 @@ commands:
301
303
touch << parameters.result_path >>/<< parameters.result_subdir >>/${CIRCLE_NODE_INDEX}/testresults.json
302
304
- restore_cache :
303
305
keys :
304
- - ' go-cache-v2-{{ .Environment.CIRCLE_STAGE }}-'
306
+ - ' go-cache-v3-{{ arch }}-{{ .Branch }}-{{ .Revision }}'
307
+ - ' go-cache-v3-{{ arch }}-{{ .Branch }}-'
308
+ - ' go-cache-v3-{{ arch }}-'
305
309
- run :
306
310
name : Run build tests
307
311
no_output_timeout : << parameters.no_output_timeout >>
@@ -333,10 +337,6 @@ commands:
333
337
root : << parameters.result_path >>
334
338
paths :
335
339
- << parameters.result_subdir >>
336
- - save_cache :
337
- key : ' go-cache-v2-{{ .Environment.CIRCLE_STAGE }}-{{ .Environment.CIRCLE_BUILD_NUM }}'
338
- paths :
339
- - tmp/go-cache
340
340
341
341
upload_coverage :
342
342
description : Collect coverage reports and upload them
0 commit comments