Skip to content

Commit

Permalink
[Silabs] Reduce the amount of target built by the ci while keeping al…
Browse files Browse the repository at this point in the history
…most the sa… (#36043)

* Reduce the amount of target build by the ci why keeping almost the same code coverage

* Fix missing target change in bloat report
  • Loading branch information
jmartinez-silabs authored Oct 11, 2024
1 parent 7287041 commit d2d06b3
Showing 1 changed file with 7 additions and 38 deletions.
45 changes: 7 additions & 38 deletions .github/workflows/examples-efr32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ jobs:
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py \
--enable-flashbundle \
--target efr32-brd4187c-thermostat-openthread-mtd \
--target efr32-brd4187c-air-quality-sensor-app-openthread-mtd \
--target efr32-brd4187c-thermostat-use-ot-lib \
--target efr32-brd4187c-switch-shell-use-ot-coap-lib \
--target efr32-brd4187c-unit-test \
build \
Expand All @@ -82,42 +81,30 @@ jobs:
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py \
--enable-flashbundle \
--target efr32-brd4187c-light-use-ot-lib \
--target efr32-brd4187c-pump \
--target efr32-brd4187c-lock-shell-heap-monitoring \
build \
--copy-artifacts-to out/artifacts \
"
- name: Clean out build output
run: rm -rf ./out
- name: Build BRD4187C variants (3)
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py \
--enable-flashbundle \
--target efr32-brd4187c-lock-rpc \
--target efr32-brd4187c-air-quality-sensor-app-shell-heap-monitoring \
--target efr32-brd4187c-window-covering-additional-data-advertising \
--target efr32-brd4187c-light-rpc \
build \
--copy-artifacts-to out/artifacts \
"
- name: Prepare some bloat report from the previous builds
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
efr32 BRD4187C lighting-app \
out/efr32-brd4187c-light-rpc/matter-silabs-lighting-example.out \
efr32 BRD4187C lock-app \
out/efr32-brd4187c-lock-rpc/matter-silabs-lock-example.out \
/tmp/bloat_reports/
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
efr32 BRD4187C window-app \
out/efr32-brd4187c-window-covering-additional-data-advertising/matter-silabs-window-example.out \
/tmp/bloat_reports/
- name: Clean out build output
run: rm -rf ./out
- name: Build BRD4338A WiFi Soc variants
- name: Build some WiFi Soc variants
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py \
--enable-flashbundle \
--target efr32-brd4338a-light-skip-rps-generation \
--target efr32-brd2605a-light-skip-rps-generation \
--target efr32-brd4338a-lock-skip-rps-generation \
build \
--copy-artifacts-to out/artifacts \
Expand All @@ -130,24 +117,6 @@ jobs:
/tmp/bloat_reports/
- name: Clean out build output
run: rm -rf ./out
- name: Build BRD2605A WiFi Soc variants
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py \
--enable-flashbundle \
--target efr32-brd2605a-light-skip-rps-generation \
--target efr32-brd2605a-lock-skip-rps-generation \
build \
--copy-artifacts-to out/artifacts \
"
- name: Prepare bloat report for brd2605a lock app
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
efr32 BRD2605a lock-app \
out/efr32-brd2605a-lock-skip-rps-generation/matter-silabs-lock-example.out \
/tmp/bloat_reports/
- name: Clean out build output
run: rm -rf ./out
- name: Build EFR32 with WiFi NCP
run: |
./scripts/run_in_build_env.sh \
Expand Down

0 comments on commit d2d06b3

Please sign in to comment.