From e506300ff2a5a472e5b9f40ddc0b7c2fae0d5c59 Mon Sep 17 00:00:00 2001 From: Seth Rickard Date: Fri, 6 May 2022 22:01:49 +0000 Subject: [PATCH] add shell to CI build --- .github/workflows/examples-cc13x2x7_26x2x7.yaml | 7 +++++++ scripts/build/build/targets.py | 1 + scripts/build/builders/cc13x2x7_26x2x7.py | 5 +++++ scripts/build/testdata/all_targets_except_host.txt | 1 + scripts/build/testdata/build_all_except_host.txt | 6 ++++++ scripts/build/testdata/glob_star_targets_except_host.txt | 1 + 6 files changed, 21 insertions(+) diff --git a/.github/workflows/examples-cc13x2x7_26x2x7.yaml b/.github/workflows/examples-cc13x2x7_26x2x7.yaml index e91451fa89dd1b..de88517a645fdb 100644 --- a/.github/workflows/examples-cc13x2x7_26x2x7.yaml +++ b/.github/workflows/examples-cc13x2x7_26x2x7.yaml @@ -106,6 +106,13 @@ jobs: cc13x2_26x2 LP_CC2652R7 all-clusters-app \ out/artifacts/cc13x2x7_26x2x7-all-clusters/chip-LP_CC2652R7-all-clusters-example.out \ /tmp/bloat_reports/ + - name: Get Shell App size stats + timeout-minutes: 5 + run: | + .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \ + cc13x2_26x2 LP_CC2652R7 shell \ + out/artifacts/cc13x2x7_26x2x7-shell/chip-LP_CC2652R7-shell-example.out \ + /tmp/bloat_reports/ - name: Uploading Size Reports uses: actions/upload-artifact@v2 if: ${{ !env.ACT }} diff --git a/scripts/build/build/targets.py b/scripts/build/build/targets.py index 768469f030d663..ba12415facfe5d 100644 --- a/scripts/build/build/targets.py +++ b/scripts/build/build/targets.py @@ -494,6 +494,7 @@ def cc13x2x7_26x2x7Targets(): yield target.Extend('pump', app=cc13x2x7_26x2x7App.PUMP) yield target.Extend('pump-controller', app=cc13x2x7_26x2x7App.PUMP_CONTROLLER) yield target.Extend('all-clusters', app=cc13x2x7_26x2x7App.ALL_CLUSTERS) + yield target.Extend('shell', app=cc13x2x7_26x2x7App.SHELL) def Cyw30739Targets(): diff --git a/scripts/build/builders/cc13x2x7_26x2x7.py b/scripts/build/builders/cc13x2x7_26x2x7.py index 125653bf6b5cee..80afb5d66ce54f 100644 --- a/scripts/build/builders/cc13x2x7_26x2x7.py +++ b/scripts/build/builders/cc13x2x7_26x2x7.py @@ -23,6 +23,7 @@ class cc13x2x7_26x2x7App(Enum): PUMP = auto() PUMP_CONTROLLER = auto() ALL_CLUSTERS = auto() + SHELL = auto() def ExampleName(self): if self == cc13x2x7_26x2x7App.LOCK: @@ -33,6 +34,8 @@ def ExampleName(self): return 'pump-controller-app' elif self == cc13x2x7_26x2x7App.ALL_CLUSTERS: return 'all-clusters-app' + elif self == cc13x2x7_26x2x7App.SHELL: + return 'shell' else: raise Exception('Unknown app type: %r' % self) @@ -45,6 +48,8 @@ def AppNamePrefix(self): return 'chip-LP_CC2652R7-pump-controller-example' elif self == cc13x2x7_26x2x7App.ALL_CLUSTERS: return 'chip-LP_CC2652R7-all-clusters-example' + elif self == cc13x2x7_26x2x7App.SHELL: + return 'chip-LP_CC2652R7-shell-example' else: raise Exception('Unknown app type: %r' % self) diff --git a/scripts/build/testdata/all_targets_except_host.txt b/scripts/build/testdata/all_targets_except_host.txt index a97608af99fef6..4da893bf329f05 100644 --- a/scripts/build/testdata/all_targets_except_host.txt +++ b/scripts/build/testdata/all_targets_except_host.txt @@ -22,6 +22,7 @@ cc13x2x7_26x2x7-lock-ftd cc13x2x7_26x2x7-lock-mtd cc13x2x7_26x2x7-pump cc13x2x7_26x2x7-pump-controller +cc13x2x7_26x2x7-shell cyw30739-cyw930739m2evb_01-light cyw30739-cyw930739m2evb_01-lock cyw30739-cyw930739m2evb_01-ota-requestor (NOGLOB: Running out of XIP flash space) diff --git a/scripts/build/testdata/build_all_except_host.txt b/scripts/build/testdata/build_all_except_host.txt index 1a7820ebc89b7f..4f997c533a1e58 100644 --- a/scripts/build/testdata/build_all_except_host.txt +++ b/scripts/build/testdata/build_all_except_host.txt @@ -163,6 +163,9 @@ gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/exa # Generating cc13x2x7_26x2x7-pump-controller gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/pump-controller-app/cc13x2x7_26x2x7 '--args=ti_sysconfig_root="TEST_TI_SYSCONFIG_ROOT"' {out}/cc13x2x7_26x2x7-pump-controller +# Generating cc13x2x7_26x2x7-shell +gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/shell/cc13x2x7_26x2x7 '--args=ti_sysconfig_root="TEST_TI_SYSCONFIG_ROOT"' {out}/cc13x2x7_26x2x7-shell + # Generating cyw30739-cyw930739m2evb_01-light gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/lighting-app/cyw30739 {out}/cyw30739-cyw930739m2evb_01-light @@ -1259,6 +1262,9 @@ ninja -C {out}/cc13x2x7_26x2x7-pump # Building cc13x2x7_26x2x7-pump-controller ninja -C {out}/cc13x2x7_26x2x7-pump-controller +# Building cc13x2x7_26x2x7-shell +ninja -C {out}/cc13x2x7_26x2x7-shell + # Building cyw30739-cyw930739m2evb_01-light ninja -C {out}/cyw30739-cyw930739m2evb_01-light diff --git a/scripts/build/testdata/glob_star_targets_except_host.txt b/scripts/build/testdata/glob_star_targets_except_host.txt index 8783e163a04bf8..beb0d999fb0011 100644 --- a/scripts/build/testdata/glob_star_targets_except_host.txt +++ b/scripts/build/testdata/glob_star_targets_except_host.txt @@ -22,6 +22,7 @@ cc13x2x7_26x2x7-lock-ftd cc13x2x7_26x2x7-lock-mtd cc13x2x7_26x2x7-pump cc13x2x7_26x2x7-pump-controller +cc13x2x7_26x2x7-shell cyw30739-cyw930739m2evb_01-light cyw30739-cyw930739m2evb_01-lock cyw30739-cyw930739m2evb_01-ota-requestor-no-progress-logging