@@ -282,24 +282,6 @@ jobs:
282
282
# # objdirs are big; don't hold on to them too long.
283
283
# retention-days: 5
284
284
285
- # TODO Log Upload https://github.com/project-chip/connectedhomeip/issues/2227
286
- # TODO https://github.com/project-chip/connectedhomeip/issues/1512
287
- # - name: Run Code Coverage
288
- # if: ${{ contains('main', env.BUILD_TYPE) }}
289
- # run: scripts/tools/codecoverage.sh
290
- # - name: Upload Code Coverage
291
- # if: ${{ contains('main', env.BUILD_TYPE) }}
292
- # run: bash <(curl -s https://codecov.io/bash)
293
- # - name: Remove third_party binaries for CodeQL Analysis
294
- # run: find out -type d -name "third_party" -exec rm -rf {} +
295
- # - name: Remove dbus binaries for CodeQL Analysis
296
- # run: find out -type d -name "dbus" -exec rm -rf {} +
297
- # - name: Remove nrfxlib binaries for CodeQL Analysis
298
- # run: find . -type d -name "nrfxlib" -exec rm -rf {} +
299
- # - name: Perform CodeQL Analysis
300
- # if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/master' }}
301
- # uses: github/codeql-action/analyze@v1
302
-
303
285
build_linux_python_lib :
304
286
name : Build on Linux (python_lib)
305
287
timeout-minutes : 60
@@ -456,9 +438,44 @@ jobs:
456
438
# uses: github/codeql-action/analyze@v1
457
439
# TODO Log Upload https://github.com/project-chip/connectedhomeip/issues/2227
458
440
# TODO https://github.com/project-chip/connectedhomeip/issues/1512
459
- # - name: Run Code Coverage
460
- # if: ${{ contains('main', env.BUILD_TYPE) }}
461
- # run: scripts/tools/codecoverage.sh
462
- # - name: Upload Code Coverage
463
- # if: ${{ contains('main', env.BUILD_TYPE) }}
464
- # run: bash <(curl -s https://codecov.io/bash)
441
+
442
+ build_linux_gcc_coverage :
443
+ name : Build on Linux (coverage)
444
+ timeout-minutes : 85
445
+
446
+ runs-on : ubuntu-latest
447
+ if : github.actor != 'restyled-io[bot]'
448
+
449
+ container :
450
+ image : connectedhomeip/chip-build:0.6.30
451
+ volumes :
452
+ - " /tmp/log_output:/tmp/test_logs"
453
+ options : --privileged --sysctl "net.ipv6.conf.all.disable_ipv6=0
454
+ net.ipv4.conf.all.forwarding=1 net.ipv6.conf.all.forwarding=1"
455
+
456
+ steps :
457
+ - uses : Wandalen/wretry.action@v1.0.36
458
+ name : Checkout
459
+ with :
460
+ action : actions/checkout@v3
461
+ with : |
462
+ token: ${{ github.token }}
463
+ attempt_limit : 3
464
+ attempt_delay : 2000
465
+ - name : Checkout submodules
466
+ run : scripts/checkout_submodules.py --shallow --platform linux
467
+ - name : Bootstrap
468
+ timeout-minutes : 10
469
+ run : scripts/build/gn_bootstrap.sh
470
+ - name : Uploading bootstrap logs
471
+ uses : actions/upload-artifact@v3
472
+ if : ${{ always() && !env.ACT }}
473
+ with :
474
+ name : bootstrap-logs
475
+ path : |
476
+ .environment/gn_out/.ninja_log
477
+ .environment/pigweed-venv/*.log
478
+ - name : Run Build Coverage
479
+ timeout-minutes : 20
480
+ run : ./scripts/build_coverage.sh
481
+
0 commit comments