37
37
jobs :
38
38
build_linux_gcc_debug :
39
39
name : Build on Linux (gcc_debug)
40
- timeout-minutes : 85
41
40
42
41
runs-on : ubuntu-latest
43
42
if : github.actor != 'restyled-io[bot]'
88
87
.environment
89
88
build_overrides/pigweed_environment.gni
90
89
- name : Bootstrap
91
- timeout-minutes : 10
92
90
run : bash scripts/bootstrap.sh
93
91
- name : Uploading bootstrap logs
94
92
uses : actions/upload-artifact@v3
@@ -107,10 +105,8 @@ jobs:
107
105
- name : Setup Build
108
106
run : scripts/build/gn_gen.sh --args="chip_config_memory_debug_checks=true chip_config_memory_debug_dmalloc=false"
109
107
- name : Run Build
110
- timeout-minutes : 20
111
108
run : scripts/run_in_build_env.sh "ninja -C ./out"
112
109
- name : Run Tests
113
- timeout-minutes : 30
114
110
run : scripts/tests/gn_tests.sh
115
111
# TODO Log Upload https://github.com/project-chip/connectedhomeip/issues/2227
116
112
# TODO https://github.com/project-chip/connectedhomeip/issues/1512
@@ -123,17 +119,14 @@ jobs:
123
119
- name : Setup Build Without Detail Logging
124
120
run : scripts/build/gn_gen.sh --args="chip_detail_logging=false"
125
121
- name : Run Build Without Detail Logging
126
- timeout-minutes : 20
127
122
run : scripts/run_in_build_env.sh "ninja -C ./out"
128
123
- name : Setup Build Without Progress Logging
129
124
run : scripts/build/gn_gen.sh --args="chip_detail_logging=false chip_progress_logging=false"
130
125
- name : Run Build Without Progress Logging
131
- timeout-minutes : 20
132
126
run : scripts/run_in_build_env.sh "ninja -C ./out"
133
127
- name : Setup Build Without Error Logging
134
128
run : scripts/build/gn_gen.sh --args="chip_detail_logging=false chip_progress_logging=false chip_error_logging=false"
135
129
- name : Run Build Without Error Logging
136
- timeout-minutes : 20
137
130
run : scripts/run_in_build_env.sh "ninja -C ./out"
138
131
- name : Uploading core files
139
132
uses : actions/upload-artifact@v3
@@ -189,7 +182,6 @@ jobs:
189
182
190
183
build_linux :
191
184
name : Build on Linux (fake, gcc_release, clang, simulated)
192
- timeout-minutes : 150
193
185
194
186
runs-on : ubuntu-latest
195
187
if : github.actor != 'restyled-io[bot]'
@@ -240,7 +232,6 @@ jobs:
240
232
.environment
241
233
build_overrides/pigweed_environment.gni
242
234
- name : Bootstrap
243
- timeout-minutes : 10
244
235
run : bash scripts/bootstrap.sh
245
236
- name : Uploading bootstrap logs
246
237
uses : actions/upload-artifact@v3
@@ -256,21 +247,18 @@ jobs:
256
247
with :
257
248
languages : " cpp"
258
249
- name : Setup and Build Simulated Device
259
- timeout-minutes : 20
260
250
run : |
261
251
BUILD_TYPE=simulated
262
252
GN_ARGS='chip_tests_zap_config="app1" chip_project_config_include_dirs=["../../examples/placeholder/linux/apps/app1/include", "../../config/standalone"] chip_config_network_layer_ble=false'
263
253
CHIP_ROOT_PATH=examples/placeholder/linux
264
254
CHIP_ROOT_PATH="$CHIP_ROOT_PATH" BUILD_TYPE="$BUILD_TYPE" scripts/build/gn_gen.sh --args="$GN_ARGS"
265
255
scripts/run_in_build_env.sh "ninja -C ./out/$BUILD_TYPE"
266
256
- name : Setup Build, Run Build and Run Tests
267
- timeout-minutes : 90
268
257
run : |
269
258
BUILD_TYPE=gcc_release scripts/build/gn_gen.sh --args="is_debug=false"
270
259
scripts/run_in_build_env.sh "ninja -C ./out/gcc_release"
271
260
BUILD_TYPE=gcc_release scripts/tests/gn_tests.sh
272
261
- name : Run Tests with sanitizers
273
- timeout-minutes : 60
274
262
env :
275
263
LSAN_OPTIONS : detect_leaks=1
276
264
run : |
@@ -287,11 +275,9 @@ jobs:
287
275
BUILD_TYPE=sanitizers scripts/tests/gn_tests.sh
288
276
done
289
277
- name : Ensure codegen is done for sanitize
290
- timeout-minutes : 45
291
278
run : |
292
279
./scripts/run_in_build_env.sh "./scripts/run_codegen_targets.sh out/sanitizers"
293
280
- name : Clang-tidy validation
294
- timeout-minutes : 60
295
281
run : |
296
282
./scripts/run_in_build_env.sh \
297
283
"./scripts/run-clang-tidy-on-compile-commands.py \
@@ -300,7 +286,6 @@ jobs:
300
286
check \
301
287
"
302
288
- name : Build using build_examples.py
303
- timeout-minutes : 60
304
289
run : |
305
290
./scripts/run_in_build_env.sh \
306
291
"./scripts/build/build_examples.py \
@@ -315,7 +300,6 @@ jobs:
315
300
- name : Clean output
316
301
run : rm -rf ./out
317
302
- name : Build using build_examples.py (pregen)
318
- timeout-minutes : 60
319
303
run : |
320
304
./scripts/run_in_build_env.sh \
321
305
"./scripts/build/build_examples.py \
@@ -337,7 +321,6 @@ jobs:
337
321
rm -rf ./zzz_pregenerated
338
322
mv scripts/codegen.py.renamed scripts/codegen.py
339
323
- name : Run fake linux tests with build_examples
340
- timeout-minutes : 15
341
324
run : |
342
325
./scripts/run_in_build_env.sh \
343
326
"./scripts/build/build_examples.py --target linux-fake-tests build"
@@ -395,7 +378,6 @@ jobs:
395
378
396
379
build_linux_python_lib :
397
380
name : Build on Linux (python_lib)
398
- timeout-minutes : 60
399
381
400
382
runs-on : ubuntu-latest
401
383
if : github.actor != 'restyled-io[bot]'
@@ -441,33 +423,28 @@ jobs:
441
423
.environment
442
424
build_overrides/pigweed_environment.gni
443
425
- name : Bootstrap
444
- timeout-minutes : 10
445
426
run : bash scripts/bootstrap.sh
446
427
447
428
- name : Setup Build, Run Build and Run Tests
448
- timeout-minutes : 50
449
429
run : |
450
430
scripts/build/gn_gen.sh --args="enable_rtti=true enable_pylib=true chip_config_memory_debug_checks=false chip_config_memory_debug_dmalloc=false"
451
431
scripts/run_in_build_env.sh "ninja -C ./out"
452
432
scripts/tests/gn_tests.sh
453
433
- name : Run Python library specific unit tests
454
- timeout-minutes : 5
455
434
run : |
456
435
scripts/run_in_build_env.sh 'pip3 install ./out/controller/python/chip_core-0.0-cp37-abi3-linux_x86_64.whl'
457
436
scripts/run_in_build_env.sh 'pip3 install ./out/controller/python/chip_clusters-0.0-py3-none-any.whl'
458
437
scripts/run_in_build_env.sh 'pip3 install ./out/controller/python/chip_repl-0.0-py3-none-any.whl'
459
438
scripts/run_in_build_env.sh '(cd src/controller/python/test/unit_tests/ && python3 -m unittest -v)'
460
439
461
440
- name : Run Python Setup Payload Generator Test
462
- timeout-minutes : 20
463
441
run : |
464
442
scripts/run_in_build_env.sh 'scripts/examples/gn_build_example.sh examples/chip-tool out/'
465
443
scripts/run_in_build_env.sh 'pip3 install -r src/setup_payload/python/requirements.txt'
466
444
scripts/run_in_build_env.sh 'python3 src/setup_payload/tests/run_python_setup_payload_gen_test.py out/chip-tool'
467
445
468
446
build_darwin :
469
447
name : Build on Darwin (clang, python_lib, simulated)
470
- timeout-minutes : 200
471
448
runs-on : macos-latest
472
449
if : github.actor != 'restyled-io[bot]'
473
450
@@ -500,7 +477,6 @@ jobs:
500
477
.environment
501
478
build_overrides/pigweed_environment.gni
502
479
- name : Bootstrap
503
- timeout-minutes : 25
504
480
run : bash scripts/bootstrap.sh
505
481
- name : Uploading bootstrap logs
506
482
uses : actions/upload-artifact@v3
@@ -517,15 +493,13 @@ jobs:
517
493
with :
518
494
languages : " cpp"
519
495
- name : Setup and Build Simulated Device
520
- timeout-minutes : 20
521
496
run : |
522
497
BUILD_TYPE=simulated
523
498
GN_ARGS='chip_tests_zap_config="app1" chip_project_config_include_dirs=["../../examples/placeholder/linux/apps/app1/include", "../../config/standalone"] chip_config_network_layer_ble=false'
524
499
CHIP_ROOT_PATH=examples/placeholder/linux
525
500
CHIP_ROOT_PATH="$CHIP_ROOT_PATH" BUILD_TYPE="$BUILD_TYPE" scripts/build/gn_gen.sh --args="$GN_ARGS"
526
501
scripts/run_in_build_env.sh "ninja -C ./out/$BUILD_TYPE"
527
502
- name : Setup Build, Run Build and Run Tests
528
- timeout-minutes : 120
529
503
# We can't enable leak checking here in LSAN_OPTIONS, because on
530
504
# Darwin that's only supported with a new enough clang, and we're
531
505
# not building with the pigweed clang here.
@@ -547,11 +521,9 @@ jobs:
547
521
BUILD_TYPE=$BUILD_TYPE scripts/tests/gn_tests.sh
548
522
done
549
523
- name : Ensure codegen is done for sanitize
550
- timeout-minutes : 45
551
524
run : |
552
525
./scripts/run_in_build_env.sh "./scripts/run_codegen_targets.sh out/default"
553
526
- name : Clang-tidy validation
554
- timeout-minutes : 60
555
527
run : |
556
528
./scripts/run_in_build_env.sh \
557
529
"./scripts/run-clang-tidy-on-compile-commands.py \
@@ -599,7 +571,6 @@ jobs:
599
571
600
572
build_linux_gcc_coverage :
601
573
name : Build on Linux (coverage)
602
- timeout-minutes : 85
603
574
604
575
runs-on : ubuntu-latest
605
576
if : github.actor != 'restyled-io[bot]'
@@ -637,7 +608,6 @@ jobs:
637
608
.environment
638
609
build_overrides/pigweed_environment.gni
639
610
- name : Bootstrap
640
- timeout-minutes : 10
641
611
run : bash scripts/bootstrap.sh
642
612
- name : Uploading bootstrap logs
643
613
uses : actions/upload-artifact@v3
@@ -649,5 +619,4 @@ jobs:
649
619
.environment/pigweed-venv/*.log
650
620
651
621
- name : Run Build Coverage
652
- timeout-minutes : 30
653
622
run : ./scripts/build_coverage.sh
0 commit comments