-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix-verify-or-return
- Loading branch information
Showing
193 changed files
with
15,253 additions
and
320 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 |
---|---|---|
@@ -0,0 +1,114 @@ | ||
# Copyright (c) 2021 Project CHIP Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
name: Build example - Open IoT SDK | ||
|
||
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 | ||
|
||
jobs: | ||
openiotsdk: | ||
name: Open IoT SDK examples building | ||
timeout-minutes: 140 | ||
|
||
env: | ||
TEST_NETWORK_NAME: OIStest | ||
|
||
runs-on: ubuntu-latest | ||
if: github.actor != 'restyled-io[bot]' | ||
|
||
container: | ||
image: connectedhomeip/chip-build-openiotsdk:0.6.06 | ||
volumes: | ||
- "/tmp/bloat_reports:/tmp/bloat_reports" | ||
options: --privileged | ||
|
||
steps: | ||
- uses: Wandalen/[email protected] | ||
name: Checkout | ||
with: | ||
action: actions/checkout@v3 | ||
with: | | ||
token: ${{ github.token }} | ||
attempt_limit: 3 | ||
attempt_delay: 2000 | ||
- name: Checkout submodules | ||
run: scripts/checkout_submodules.py --shallow --recursive --platform openiotsdk | ||
|
||
- name: Set up environment for size reports | ||
if: ${{ !env.ACT }} | ||
env: | ||
GH_CONTEXT: ${{ toJson(github) }} | ||
run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}" | ||
|
||
- name: Bootstrap | ||
timeout-minutes: 10 | ||
run: scripts/build/gn_bootstrap.sh | ||
|
||
- name: Build and install Python controller | ||
timeout-minutes: 10 | ||
run: | | ||
scripts/run_in_build_env.sh './scripts/build_python.sh --install_wheel build-env' | ||
- name: Build shell example | ||
id: build_shell | ||
timeout-minutes: 10 | ||
run: | | ||
scripts/examples/openiotsdk_example.sh shell | ||
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \ | ||
openiotsdk release shell \ | ||
examples/shell/openiotsdk/build/chip-openiotsdk-shell-example.elf \ | ||
/tmp/bloat_reports/ | ||
- name: Build lock-app example | ||
id: build_lock_app | ||
timeout-minutes: 10 | ||
run: | | ||
scripts/examples/openiotsdk_example.sh lock-app | ||
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \ | ||
openiotsdk release lock-app \ | ||
examples/lock-app/openiotsdk/build/chip-openiotsdk-lock-app-example.elf \ | ||
/tmp/bloat_reports/ | ||
- name: Build unit tests | ||
id: build_unit_tests | ||
timeout-minutes: 10 | ||
run: | | ||
scripts/examples/openiotsdk_example.sh unit-tests | ||
- name: Test shell example | ||
if: steps.build_shell.outcome == 'success' | ||
timeout-minutes: 5 | ||
run: | | ||
scripts/examples/openiotsdk_example.sh -C test shell | ||
- name: Test lock-app example | ||
if: steps.build_lock_app.outcome == 'success' | ||
timeout-minutes: 5 | ||
run: | | ||
scripts/setup/openiotsdk/network_setup.sh -n $TEST_NETWORK_NAME up | ||
scripts/run_in_ns.sh ${TEST_NETWORK_NAME}ns scripts/examples/openiotsdk_example.sh -C test -n ${TEST_NETWORK_NAME}tap lock-app | ||
scripts/setup/openiotsdk/network_setup.sh -n $TEST_NETWORK_NAME down | ||
- name: Run unit tests | ||
if: steps.build_unit_tests.outcome == 'success' && github.event_name == 'pull_request' | ||
timeout-minutes: 90 | ||
run: | | ||
scripts/examples/openiotsdk_example.sh -C run unit-tests |
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
Oops, something went wrong.