Skip to content

Commit

Permalink
SOURCE15
Browse files Browse the repository at this point in the history
  • Loading branch information
kpschoedel committed Sep 2, 2021
1 parent 7376c92 commit e1ea910
Show file tree
Hide file tree
Showing 15 changed files with 966 additions and 188 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/examples-efr32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,30 +62,26 @@ jobs:
timeout-minutes: 10
run: |
scripts/examples/gn_efr32_example.sh examples/lock-app/efr32/ out/lock_app_debug BRD4161A
which pip
pip list
which pip3
pip3 list
scripts/tools/memory/gh_sizes.py efr32 BRD4161A lock-app \
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py efr32 BRD4161A lock-app \
out/lock_app_debug/BRD4161A/chip-efr32-lock-example.out /tmp/bloat_reports/
- name: Build example EFR32 Lighting App for BRD4161A
timeout-minutes: 10
run: |
scripts/examples/gn_efr32_example.sh examples/lighting-app/efr32/ out/lighting_app_debug BRD4161A
scripts/tools/memory/gh_sizes.py efr32 BRD4161A lighting-app \
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py efr32 BRD4161A lighting-app \
out/lighting_app_debug/BRD4161A/chip-efr32-lighting-example.out /tmp/bloat_reports/
- name: Build example EFR32 Lighting App for BRD4161A with RPCs
timeout-minutes: 10
run: |
scripts/examples/gn_efr32_example.sh examples/lighting-app/efr32/ out/lighting_app_debug_rpc BRD4161A \
-args='import("//with_pw_rpc.gni")'
scripts/tools/memory/gh_sizes.py efr32 BRD4161A+rpc lighting-app \
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py efr32 BRD4161A+rpc lighting-app \
out/lighting_app_debug_rpc/BRD4161A/chip-efr32-lighting-example.out /tmp/bloat_reports/
- name: Build example EFR32 Window Covering for BRD4161A
timeout-minutes: 10
run: |
scripts/examples/gn_efr32_example.sh examples/window-app/efr32/ out/window_app_debug BRD4161A
scripts/tools/memory/gh_sizes.py efr32 BRD4161A window-app \
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py efr32 BRD4161A window-app \
out/window_app_debug/BRD4161A/chip-efr32-window-example.out /tmp/bloat_reports/
- name: Binary artifact suffix
id: outsuffix
Expand Down
45 changes: 36 additions & 9 deletions .github/workflows/examples-esp32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ jobs:
mkdir -p example_binaries/$BUILD_TYPE-build
cp examples/all-clusters-app/esp32/build/chip-all-clusters-app.elf \
example_binaries/$BUILD_TYPE-build/chip-all-clusters-app.elf
scripts/tools/memory/gh_sizes.py esp32 m5stack all-clusters-app "$_" /tmp/bloat_reports/
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
esp32 m5stack all-clusters-app \
example_binaries/$BUILD_TYPE-build/chip-all-clusters-app.elf \
/tmp/bloat_reports/
- name: Build example All Clusters App C3
timeout-minutes: 10
run: scripts/examples/esp_example.sh all-clusters-app sdkconfig_c3devkit.defaults
Expand All @@ -76,7 +79,10 @@ jobs:
mkdir -p example_binaries/$BUILD_TYPE-build
cp examples/all-clusters-app/esp32/build/chip-all-clusters-app.elf \
example_binaries/$BUILD_TYPE-build/chip-all-clusters-app.elf
scripts/tools/memory/gh_sizes.py esp32 c3devkit all-clusters-app "$_" /tmp/bloat_reports/
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
esp32 c3devkit all-clusters-app \
example_binaries/$BUILD_TYPE-build/chip-all-clusters-app.elf \
/tmp/bloat_reports/
- name: Build example Pigweed App
timeout-minutes: 5
run: scripts/examples/esp_example.sh pigweed-app sdkconfig.defaults
Expand All @@ -85,7 +91,10 @@ jobs:
mkdir -p example_binaries/$BUILD_TYPE-build
cp examples/pigweed-app/esp32/build/chip-pigweed-app.elf \
example_binaries/$BUILD_TYPE-build/chip-pigweed-app.elf
scripts/tools/memory/gh_sizes.py esp32 default pigweed-app "$_" /tmp/bloat_reports/
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
esp32 default pigweed-app \
example_binaries/$BUILD_TYPE-build/chip-pigweed-app.elf \
/tmp/bloat_reports/
- name: Build example Lock App
timeout-minutes: 5
run: scripts/examples/esp_example.sh lock-app sdkconfig.defaults
Expand All @@ -94,7 +103,10 @@ jobs:
mkdir -p example_binaries/$BUILD_TYPE-build
cp examples/lock-app/esp32/build/chip-lock-app.elf \
example_binaries/$BUILD_TYPE-build/chip-lock-app.elf
scripts/tools/memory/gh_sizes.py esp32 default lock-app "$_" /tmp/bloat_reports/
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
esp32 default lock-app \
example_binaries/$BUILD_TYPE-build/chip-lock-app.elf \
/tmp/bloat_reports/
- name: Build example Bridge App
timeout-minutes: 5
run: scripts/examples/esp_example.sh bridge-app
Expand All @@ -103,7 +115,10 @@ jobs:
mkdir -p example_binaries/$BUILD_TYPE-build
cp examples/bridge-app/esp32/build/chip-bridge-app.elf \
example_binaries/$BUILD_TYPE-build/chip-bridge-app.elf
scripts/tools/memory/gh_sizes.py esp32 default bridge-app "$_" /tmp/bloat_reports/
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
esp32 default bridge-app \
example_binaries/$BUILD_TYPE-build/chip-bridge-app.elf \
/tmp/bloat_reports/
- name: Build example Persistent Storage App
timeout-minutes: 5
run: scripts/examples/esp_example.sh persistent-storage sdkconfig.defaults
Expand All @@ -112,7 +127,10 @@ jobs:
mkdir -p example_binaries/$BUILD_TYPE-build
cp examples/persistent-storage/esp32/build/chip-persistent-storage.elf \
example_binaries/$BUILD_TYPE-build/chip-persistent-storage.elf
scripts/tools/memory/gh_sizes.py esp32 default persistent-storage "$_" /tmp/bloat_reports/
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
esp32 default persistent-storage \
example_binaries/$BUILD_TYPE-build/chip-persistent-storage.elf \
/tmp/bloat_reports/
- name: Build example Shell App
timeout-minutes: 5
run: scripts/examples/esp_example.sh shell sdkconfig.defaults
Expand All @@ -121,7 +139,10 @@ jobs:
mkdir -p example_binaries/$BUILD_TYPE-build
cp examples/shell/esp32/build/chip-shell.elf \
example_binaries/$BUILD_TYPE-build/chip-shell.elf
scripts/tools/memory/gh_sizes.py esp32 default shell "$_" /tmp/bloat_reports/
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
esp32 default shell \
example_binaries/$BUILD_TYPE-build/chip-shell.elf \
/tmp/bloat_reports/
- name: Build example Temperature Measurement App
timeout-minutes: 5
run: scripts/examples/esp_example.sh temperature-measurement-app sdkconfig.optimize.defaults
Expand All @@ -130,7 +151,10 @@ jobs:
mkdir -p example_binaries/$BUILD_TYPE-build
cp examples/temperature-measurement-app/esp32/build/chip-temperature-measurement-app.elf \
example_binaries/$BUILD_TYPE-build/chip-temperature-measurement-app.elf
scripts/tools/memory/gh_sizes.py esp32 optimize temperature-measurement-app "$_" /tmp/bloat_reports/
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
esp32 optimize temperature-measurement-app \
example_binaries/$BUILD_TYPE-build/chip-temperature-measurement-app.elf \
/tmp/bloat_reports/
- name: Build example IPv6 Only App
timeout-minutes: 5
run: scripts/examples/esp_example.sh ipv6only-app sdkconfig.defaults
Expand All @@ -139,7 +163,10 @@ jobs:
mkdir -p example_binaries/$BUILD_TYPE-build
cp examples/ipv6only-app/esp32/build/chip-ipv6only-app.elf \
example_binaries/$BUILD_TYPE-build/chip-ipv6only-app.elf
scripts/tools/memory/gh_sizes.py esp32 ipv6only-app temperature-measurement-app "$_" /tmp/bloat_reports/
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
esp32 ipv6only-app temperature-measurement-app \
example_binaries/$BUILD_TYPE-build/chip-ipv6only-app.elf \
/tmp/bloat_reports/
- name: Binary artifact suffix
id: outsuffix
uses: haya14busa/[email protected]
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/examples-infineon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ jobs:
name: Infineon examples building
timeout-minutes: 30

env:
GH_EVENT_PR: ${{ github.event_name == 'pull_request' && github.event.number || (-1) }}
GH_EVENT_HASH: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
GH_EVENT_PARENT: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.event.before }}

runs-on: ubuntu-latest
if: github.actor != 'restyled-io[bot]'

Expand Down Expand Up @@ -55,4 +60,13 @@ jobs:
run: |
scripts/run_in_build_env.sh \
"scripts/build/build_examples.py --no-log-timestamps --platform infineon --app lock build"
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
p6 default lock-app \
out/infineon-p6board-lock/chip-p6-lock-example.out
- name: Uploading Size Reports
uses: actions/upload-artifact@v2
with:
name: Sizes,P6-Examples,${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }}
path: |
out/infineon-p6board-lock/p6-default-lock-app-sizes.json
33 changes: 27 additions & 6 deletions .github/workflows/examples-k32w.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:

env:
BUILD_TYPE: gn_k32w
GH_EVENT_PR: ${{ github.event_name == 'pull_request' && github.event.number || (-1) }}
GH_EVENT_HASH: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
GH_EVENT_PARENT: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.event.before }}

runs-on: ubuntu-latest
if: github.actor != 'restyled-io[bot]'
Expand Down Expand Up @@ -56,16 +59,28 @@ jobs:
.environment/pigweed-venv/*.log
- name: Build example K32W Lock App
timeout-minutes: 5
run: scripts/examples/k32w_example.sh
examples/lock-app/k32w out/lock_app_debug
run: |
scripts/examples/k32w_example.sh examples/lock-app/k32w out/lock_app_debug
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
k32w k32w061+debug lock-app \
out/lock_app_debug/chip-k32w061-lock-example \
/tmp/bloat_reports/
- name: Build example K32W Shell App
timeout-minutes: 5
run: scripts/examples/k32w_example.sh
examples/shell/k32w out/shell_app_debug
run: |
scripts/examples/k32w_example.sh examples/shell/k32w out/shell_app_debug
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
k32w k32w061+debug shell \
out/shell_app_debug/chip-k32w061-shell-example \
/tmp/bloat_reports/
- name: Build example K32W Lighting App with Secure Element
timeout-minutes: 5
run: scripts/examples/k32w_se_example.sh
examples/lighting-app/k32w out/lighting_app_se_release
run: |
scripts/examples/k32w_se_example.sh examples/lighting-app/k32w out/lighting_app_se_release
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
k32w k32w061+se05x+release lighting-app \
out/lighting_app_se_release/chip-k32w061-light-example \
/tmp/bloat_reports/
- name: Binary artifact suffix
id: outsuffix
uses: haya14busa/[email protected]
Expand All @@ -82,3 +97,9 @@ jobs:
path: |
out/lock_app_debug/chip-k32w061-lock-example.out
out/lock_app_debug/chip-k32w061-lock-example.out.map
- name: Uploading Size Reports
uses: actions/upload-artifact@v2
with:
name: Sizes,K32W-Examples,${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }}
path: |
/tmp/bloat_reports/
65 changes: 50 additions & 15 deletions .github/workflows/examples-linux-standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:

env:
BUILD_TYPE: gn_linux
GH_EVENT_PR: ${{ github.event_name == 'pull_request' && github.event.number || (-1) }}
GH_EVENT_HASH: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
GH_EVENT_PARENT: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.event.before }}

runs-on: ubuntu-latest
if: github.actor != 'restyled-io[bot]'
Expand Down Expand Up @@ -57,36 +60,62 @@ jobs:
.environment/pigweed-venv/*.log
- name: Build example Standalone Echo Client
timeout-minutes: 5
run:
scripts/examples/gn_build_example.sh examples/chip-tool
out/chip_tool_debug
run: |
scripts/examples/gn_build_example.sh examples/chip-tool out/chip_tool_debug
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
linux debug chip-tool \
out/chip_tool_debug/chip-tool \
/tmp/bloat_reports/ --collect-method readelf
- name: Build example Standalone Shell
timeout-minutes: 5
run:
scripts/examples/gn_build_example.sh examples/shell/standalone
out/shell_debug
run: |
scripts/examples/gn_build_example.sh examples/shell/standalone out/shell_debug
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
linux debug shell \
out/shell_debug/chip-shell \
/tmp/bloat_reports/ --collect-method readelf
- name: Build example Standalone All Clusters Server
timeout-minutes: 5
run:
scripts/examples/gn_build_example.sh examples/all-clusters-app/linux
out/all_clusters_debug chip_bypass_rendezvous=true
run: |
scripts/examples/gn_build_example.sh examples/all-clusters-app/linux out/all_clusters_debug \
chip_bypass_rendezvous=true
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
linux debug all-clusters-app \
out/all_clusters_debug/chip-all-clusters-app \
/tmp/bloat_reports/ --collect-method readelf
- name: Build example TV app
timeout-minutes: 5
run:
run: |
scripts/examples/gn_build_example.sh examples/tv-app/linux out/tv_app_debug
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
linux debug tv-app \
out/tv_app_debug/chip-tv-app \
/tmp/bloat_reports/ --collect-method readelf
- name: Build example lighting app with RPCs
timeout-minutes: 5
run:
scripts/examples/gn_build_example.sh examples/lighting-app/linux
out/lighting_app_debug_rpc 'import("//with_pw_rpc.gni")'
run: |
scripts/examples/gn_build_example.sh examples/lighting-app/linux out/lighting_app_debug_rpc \
'import("//with_pw_rpc.gni")'
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
linux debug+rpc lighting-app \
out/lighting_app_debug_rpc/chip-lighting-app \
/tmp/bloat_reports/ --collect-method readelf
- name: Build example Standalone Bridge
timeout-minutes: 5
run:
run: |
scripts/examples/gn_build_example.sh examples/bridge-app/linux out/bridge_debug
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
linux debug+rpc bridge-app \
out/bridge_debug/chip-bridge-app \
/tmp/bloat_reports/ --collect-method readelf
- name: Build example OTA Provider
timeout-minutes: 5
run:
run: |
scripts/examples/gn_build_example.sh examples/ota-provider-app/linux out/ota_provider_debug
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
linux debug ota-provider-app \
out/ota_provider_debug/chip-ota-provider-app \
/tmp/bloat_reports/ --collect-method readelf
- name: Binary artifact suffix
id: outsuffix
uses: haya14busa/[email protected]
Expand All @@ -103,3 +132,9 @@ jobs:
path: |
out/all_clusters_debug/all-clusters-server
out/all_clusters_debug/all-clusters-server.map
- name: Uploading Size Reports
uses: actions/upload-artifact@v2
with:
name: Sizes,Linux-Examples,${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }}
path: |
/tmp/bloat_reports/
Loading

0 comments on commit e1ea910

Please sign in to comment.