-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7376c92
commit e1ea910
Showing
15 changed files
with
966 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]' | ||
|
@@ -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] | ||
|
@@ -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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]' | ||
|
@@ -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] | ||
|
@@ -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/ |
Oops, something went wrong.