-
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.
[Bouffalolab] Cherry-pick: fix *.flash.py download issue and applicat…
…ion code refactor (#23947) * [Bouffalolab] build bl602 example by dev board and support *.flash.py… (#23245) * [Bouffalolab] build bl602 example by dev board and support *.flash.py for bl602 image download * Fix Restyled * update build-all.yaml for targets changed; change baudrate variable to number; change board variable to auto() * Fix Restyled * correct bouffalolab submodule commit id * [Bouffalolab] update BL602 (Wi-FI) and BL702 (Thread) lighting-app to use same application code (#23432) * [Bouffalolab] make BL602 and BL702 share same application code * rename board picture name * update vscode build task * Fix restyled * correct typeo in README.md * update readme.md * Fix restyle * Update CI workflow to build all BouffaloLab examples in one job * fix compile error * fix intergraion check * correct README.md * update readme document * fix restyle
- Loading branch information
Showing
129 changed files
with
1,578 additions
and
7,625 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -12,30 +12,34 @@ | |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
name: Build example - Bouffalolab BL702 | ||
name: Build example - BouffaloLab | ||
|
||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
CHIP_NO_LOG_TIMESTAMPS: true | ||
|
||
jobs: | ||
bl702: | ||
name: BL702 | ||
bouffalolab: | ||
name: Bouffalo Lab | ||
timeout-minutes: 90 | ||
|
||
runs-on: ubuntu-latest | ||
if: github.actor != 'restyled-io[bot]' | ||
|
||
container: | ||
image: connectedhomeip/chip-build-bouffalolab:0.6.12 | ||
image: connectedhomeip/chip-build-bouffalolab:0.6.17 | ||
volumes: | ||
- "/tmp/bloat_reports:/tmp/bloat_reports" | ||
steps: | ||
- uses: Wandalen/[email protected].15 | ||
- uses: Wandalen/[email protected].36 | ||
name: Checkout | ||
with: | ||
action: actions/checkout@v3 | ||
|
@@ -51,27 +55,68 @@ jobs: | |
env: | ||
GH_CONTEXT: ${{ toJson(github) }} | ||
run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}" | ||
|
||
- name: Build example BL702 Lighting App | ||
|
||
- name: Bootstrap | ||
timeout-minutes: 25 | ||
run: scripts/build/gn_bootstrap.sh | ||
- name: Uploading bootstrap logs | ||
uses: actions/upload-artifact@v3 | ||
if: ${{ always() && !env.ACT }} | ||
with: | ||
name: bootstrap-logs | ||
path: | | ||
.environment/gn_out/.ninja_log | ||
.environment/pigweed-venv/*.log | ||
- name: Build example BL602 Lighting App | ||
timeout-minutes: 30 | ||
run: | | ||
./scripts/run_in_build_env.sh \ | ||
"./scripts/build/build_examples.py --target bouffalolab-BL706-IoT-DVK-light build" | ||
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py bl702 bl702 lighting-app \ | ||
out/bouffalolab-BL706-IoT-DVK-light/chip-bl702-lighting-example.out /tmp/bloat_reports/ | ||
"./scripts/build/build_examples.py \ | ||
--target bouffalolab-bl602-iot-matter-v1-light \ | ||
--target bouffalolab-bl602-iot-matter-v1-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 \ | ||
bl602 bl602 lighting-app \ | ||
out/artifacts/bouffalolab-bl602-iot-matter-v1-light/chip-bl602-lighting-example.out \ | ||
/tmp/bloat_reports/ | ||
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \ | ||
bl602 bl602+rpc lighting-app \ | ||
out/artifacts/bouffalolab-bl602-iot-matter-v1-light-rpc/chip-bl602-lighting-example.out \ | ||
/tmp/bloat_reports/ | ||
- name: Clean out build output | ||
run: rm -rf ./out | ||
|
||
- name: Build example BL702 Lighting App with RPCs | ||
- name: Build example BL702 Lighting App | ||
timeout-minutes: 30 | ||
run: | | ||
./scripts/run_in_build_env.sh \ | ||
"./scripts/build/build_examples.py --target bouffalolab-BL706-IoT-DVK-light-rpc build" | ||
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py bl702 bl702+rpc lighting-app \ | ||
out/bouffalolab-BL706-IoT-DVK-light-rpc/chip-bl702-lighting-example.out /tmp/bloat_reports/ | ||
"./scripts/build/build_examples.py \ | ||
--target bouffalolab-xt-zb6-devkit-light \ | ||
--target bouffalolab-xt-zb6-devkit-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 \ | ||
bl702 bl702 lighting-app \ | ||
out/artifacts/bouffalolab-xt-zb6-devkit-light/chip-bl702-lighting-example.out \ | ||
/tmp/bloat_reports/ | ||
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \ | ||
bl702 bl702+rpc lighting-app \ | ||
out/artifacts/bouffalolab-xt-zb6-devkit-light-rpc/chip-bl702-lighting-example.out \ | ||
/tmp/bloat_reports/ | ||
- name: Clean out build output | ||
run: rm -rf ./out | ||
|
||
- name: Uploading Size Reports | ||
uses: actions/upload-artifact@v2 | ||
uses: actions/upload-artifact@v3 | ||
if: ${{ !env.ACT }} | ||
with: | ||
name: Size,BL702-Examples,${{ env.GH_EVENT_PR }},${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }},${{ github.event_name }} | ||
name: Size,BouffaloLab-Examples,${{ env.GH_EVENT_PR }},${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }},${{ github.event_name }} | ||
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.