66
66
run : |
67
67
mkdir /tmp/cores || true
68
68
sysctl -w kernel.core_pattern=/tmp/cores/core.%u.%p.%t || true
69
+
70
+ - name : Bootstrap cache
71
+ uses : actions/cache@v3
72
+ with :
73
+ key : ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
74
+ path : |
75
+ .environment
76
+ build_overrides/pigweed_environment.gni
69
77
- name : Bootstrap
70
78
timeout-minutes : 10
71
79
run : scripts/build/gn_bootstrap.sh
77
85
path : |
78
86
.environment/gn_out/.ninja_log
79
87
.environment/pigweed-venv/*.log
88
+
80
89
- name : Setup Build
81
90
run : scripts/build/gn_gen.sh --args="chip_config_memory_debug_checks=true chip_config_memory_debug_dmalloc=false"
82
91
- name : Run Build
@@ -173,6 +182,14 @@ jobs:
173
182
run : |
174
183
mkdir /tmp/cores || true
175
184
sysctl -w kernel.core_pattern=/tmp/cores/core.%u.%p.%t || true
185
+
186
+ - name : Bootstrap cache
187
+ uses : actions/cache@v3
188
+ with :
189
+ key : ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
190
+ path : |
191
+ .environment
192
+ build_overrides/pigweed_environment.gni
176
193
- name : Bootstrap
177
194
timeout-minutes : 10
178
195
run : scripts/build/gn_bootstrap.sh
@@ -184,6 +201,7 @@ jobs:
184
201
path : |
185
202
.environment/gn_out/.ninja_log
186
203
.environment/pigweed-venv/*.log
204
+
187
205
- name : Setup and Build Simulated Device
188
206
timeout-minutes : 20
189
207
run : |
@@ -323,9 +341,18 @@ jobs:
323
341
attempt_delay : 2000
324
342
- name : Checkout submodules
325
343
run : scripts/checkout_submodules.py --shallow --platform linux
344
+
345
+ - name : Bootstrap cache
346
+ uses : actions/cache@v3
347
+ with :
348
+ key : ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
349
+ path : |
350
+ .environment
351
+ build_overrides/pigweed_environment.gni
326
352
- name : Bootstrap
327
353
timeout-minutes : 10
328
354
run : scripts/build/gn_bootstrap.sh
355
+
329
356
- name : Setup Build, Run Build and Run Tests
330
357
timeout-minutes : 50
331
358
run : |
@@ -372,6 +399,14 @@ jobs:
372
399
- name : Try to ensure the directory for diagnostic log collection exists
373
400
run : |
374
401
mkdir -p ~/Library/Logs/DiagnosticReports || true
402
+
403
+ - name : Bootstrap cache
404
+ uses : actions/cache@v3
405
+ with :
406
+ key : ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
407
+ path : |
408
+ .environment
409
+ build_overrides/pigweed_environment.gni
375
410
- name : Bootstrap
376
411
timeout-minutes : 25
377
412
run : scripts/build/gn_bootstrap.sh
@@ -383,6 +418,7 @@ jobs:
383
418
path : |
384
419
.environment/gn_out/.ninja_log
385
420
.environment/pigweed-venv/*.log
421
+
386
422
- name : Setup and Build Simulated Device
387
423
timeout-minutes : 20
388
424
run : |
@@ -462,6 +498,14 @@ jobs:
462
498
attempt_delay : 2000
463
499
- name : Checkout submodules
464
500
run : scripts/checkout_submodules.py --shallow --platform linux
501
+
502
+ - name : Bootstrap cache
503
+ uses : actions/cache@v3
504
+ with :
505
+ key : ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
506
+ path : |
507
+ .environment
508
+ build_overrides/pigweed_environment.gni
465
509
- name : Bootstrap
466
510
timeout-minutes : 10
467
511
run : scripts/build/gn_bootstrap.sh
@@ -472,8 +516,8 @@ jobs:
472
516
name : bootstrap-logs
473
517
path : |
474
518
.environment/gn_out/.ninja_log
475
- .environment/pigweed-venv/*.log
519
+ .environment/pigweed-venv/*.log
520
+
476
521
- name : Run Build Coverage
477
522
timeout-minutes : 20
478
523
run : ./scripts/build_coverage.sh
479
-
0 commit comments