|
| 1 | +# Copyright (c) 2020 Project CHIP Authors |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +name: Build example - Bouffalolab BL702 |
| 16 | + |
| 17 | +on: |
| 18 | + push: |
| 19 | + pull_request: |
| 20 | + |
| 21 | +concurrency: |
| 22 | + group: ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }} |
| 23 | + cancel-in-progress: true |
| 24 | + |
| 25 | +jobs: |
| 26 | + bl702: |
| 27 | + name: BL702 |
| 28 | + timeout-minutes: 90 |
| 29 | + |
| 30 | + runs-on: ubuntu-latest |
| 31 | + if: github.actor != 'restyled-io[bot]' |
| 32 | + |
| 33 | + container: |
| 34 | + image: connectedhomeip/chip-build:latest |
| 35 | + volumes: |
| 36 | + - "/tmp/bloat_reports:/tmp/bloat_reports" |
| 37 | + steps: |
| 38 | + - uses: Wandalen/[email protected] |
| 39 | + name: Checkout |
| 40 | + with: |
| 41 | + action: actions/checkout@v3 |
| 42 | + with: | |
| 43 | + token: ${{ github.token }} |
| 44 | + attempt_limit: 3 |
| 45 | + attempt_delay: 2000 |
| 46 | + - name: Checkout submodules |
| 47 | + run: scripts/checkout_submodules.py --shallow --platform bouffalolab |
| 48 | + |
| 49 | + - name: Set up environment for size reports |
| 50 | + if: ${{ !env.ACT }} |
| 51 | + env: |
| 52 | + GH_CONTEXT: ${{ toJson(github) }} |
| 53 | + run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}" |
| 54 | + |
| 55 | + - name: Build example BL702 Lighting App |
| 56 | + timeout-minutes: 30 |
| 57 | + run: | |
| 58 | + ./scripts/run_in_build_env.sh \ |
| 59 | + "./scripts/build/build_examples.py --target bouffalolab-BL706-IoT-DVK-BL706C-22-light build" |
| 60 | + .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py bl702 bl702 lighting-app \ |
| 61 | + out/bouffalolab-BL706-IoT-DVK-BL706C-22-light/chip-bl702-lighting-example.out /tmp/bloat_reports/ |
| 62 | +
|
| 63 | + - name: Build example BL702 Lighting App with RPCs |
| 64 | + timeout-minutes: 30 |
| 65 | + run: | |
| 66 | + ./scripts/run_in_build_env.sh \ |
| 67 | + "./scripts/build/build_examples.py --target bouffalolab-BL706-IoT-DVK-BL706C-22-light-rpc build" |
| 68 | + .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py bl702 bl702+rpc lighting-app \ |
| 69 | + out/bouffalolab-BL706-IoT-DVK-BL706C-22-light-rpc/chip-bl702-lighting-example.out /tmp/bloat_reports/ |
| 70 | +
|
| 71 | + - name: Uploading Size Reports |
| 72 | + uses: actions/upload-artifact@v2 |
| 73 | + if: ${{ !env.ACT }} |
| 74 | + with: |
| 75 | + name: Size,BL702-Examples,${{ env.GH_EVENT_PR }},${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }},${{ github.event_name }} |
| 76 | + path: | |
| 77 | + /tmp/bloat_reports/ |
0 commit comments