Skip to content

Commit

Permalink
add shell to CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
srickardti committed May 12, 2022
1 parent 5520f7b commit e506300
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/examples-cc13x2x7_26x2x7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
1 change: 1 addition & 0 deletions scripts/build/build/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down
5 changes: 5 additions & 0 deletions scripts/build/builders/cc13x2x7_26x2x7.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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)

Expand All @@ -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)

Expand Down
1 change: 1 addition & 0 deletions scripts/build/testdata/all_targets_except_host.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 6 additions & 0 deletions scripts/build/testdata/build_all_except_host.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions scripts/build/testdata/glob_star_targets_except_host.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e506300

Please sign in to comment.