ElvenWang | aa5d5c7 | 2022-02-09 14:44:15 +0800 | [diff] [blame] | 1 | # Copyright (c) 2022 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 - i.MX Linux |
| 16 | |
| 17 | on: |
| 18 | push: |
| 19 | pull_request: |
Justin Wood | bd78b86 | 2023-02-14 09:36:28 -0800 | [diff] [blame] | 20 | merge_group: |
ElvenWang | aa5d5c7 | 2022-02-09 14:44:15 +0800 | [diff] [blame] | 21 | |
| 22 | concurrency: |
| 23 | group: ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }} |
| 24 | cancel-in-progress: true |
| 25 | |
Arkadiusz Bokowy | 5529d74 | 2022-12-02 22:23:01 +0100 | [diff] [blame] | 26 | env: |
| 27 | CHIP_NO_LOG_TIMESTAMPS: true |
Justin Wood | 1548bae | 2023-06-26 18:35:39 -0700 | [diff] [blame] | 28 | |
ElvenWang | aa5d5c7 | 2022-02-09 14:44:15 +0800 | [diff] [blame] | 29 | jobs: |
| 30 | imx: |
| 31 | name: Linux i.MX Build |
ElvenWang | aa5d5c7 | 2022-02-09 14:44:15 +0800 | [diff] [blame] | 32 | |
| 33 | runs-on: ubuntu-latest |
| 34 | if: github.actor != 'restyled-io[bot]' |
| 35 | |
| 36 | container: |
Justin Wood | f0adeef | 2023-07-14 11:51:49 -0700 | [diff] [blame] | 37 | image: ghcr.io/project-chip/chip-build-imx:1 |
ElvenWang | aa5d5c7 | 2022-02-09 14:44:15 +0800 | [diff] [blame] | 38 | |
| 39 | steps: |
Justin Wood | 1548bae | 2023-06-26 18:35:39 -0700 | [diff] [blame] | 40 | - name: Checkout |
| 41 | uses: actions/checkout@v3 |
| 42 | - name: Checkout submodules & Bootstrap |
| 43 | uses: ./.github/actions/checkout-submodules-and-bootstrap |
ElvenWang | aa5d5c7 | 2022-02-09 14:44:15 +0800 | [diff] [blame] | 44 | with: |
Justin Wood | 1548bae | 2023-06-26 18:35:39 -0700 | [diff] [blame] | 45 | platform: linux |
Arkadiusz Bokowy | 5529d74 | 2022-12-02 22:23:01 +0100 | [diff] [blame] | 46 | |
| 47 | - name: Build lighting-app |
ElvenWang | aa5d5c7 | 2022-02-09 14:44:15 +0800 | [diff] [blame] | 48 | run: | |
Arkadiusz Bokowy | 5529d74 | 2022-12-02 22:23:01 +0100 | [diff] [blame] | 49 | ./scripts/run_in_build_env.sh \ |
| 50 | "./scripts/build/build_examples.py \ |
| 51 | --target imx-lighting-app \ |
| 52 | build" |
rgoliver | 23787d6 | 2022-11-23 12:24:44 -0500 | [diff] [blame] | 53 | - name: Clean out build output |
| 54 | run: rm -rf ./out |
ElvenWang | aa5d5c7 | 2022-02-09 14:44:15 +0800 | [diff] [blame] | 55 | - name: Build chip-tool |
ElvenWang | aa5d5c7 | 2022-02-09 14:44:15 +0800 | [diff] [blame] | 56 | run: | |
Arkadiusz Bokowy | 5529d74 | 2022-12-02 22:23:01 +0100 | [diff] [blame] | 57 | ./scripts/run_in_build_env.sh \ |
| 58 | "./scripts/build/build_examples.py \ |
| 59 | --target imx-chip-tool \ |
| 60 | build" |
rgoliver | 23787d6 | 2022-11-23 12:24:44 -0500 | [diff] [blame] | 61 | - name: Clean out build output |
| 62 | run: rm -rf ./out |
Faqiang Zhu | 0824e95 | 2022-05-02 22:33:16 +0800 | [diff] [blame] | 63 | - name: Build thermostat |
Faqiang Zhu | 0824e95 | 2022-05-02 22:33:16 +0800 | [diff] [blame] | 64 | run: | |
| 65 | ./scripts/run_in_build_env.sh \ |
| 66 | "./scripts/build/build_examples.py \ |
Arkadiusz Bokowy | 5529d74 | 2022-12-02 22:23:01 +0100 | [diff] [blame] | 67 | --target imx-thermostat \ |
| 68 | build" |
rgoliver | 23787d6 | 2022-11-23 12:24:44 -0500 | [diff] [blame] | 69 | - name: Clean out build output |
| 70 | run: rm -rf ./out |
Faqiang Zhu | 0824e95 | 2022-05-02 22:33:16 +0800 | [diff] [blame] | 71 | - name: Build all-cluster |
Faqiang Zhu | 0824e95 | 2022-05-02 22:33:16 +0800 | [diff] [blame] | 72 | run: | |
| 73 | ./scripts/run_in_build_env.sh \ |
| 74 | "./scripts/build/build_examples.py \ |
Arkadiusz Bokowy | 5529d74 | 2022-12-02 22:23:01 +0100 | [diff] [blame] | 75 | --target imx-all-clusters-app \ |
| 76 | build" |
rgoliver | 23787d6 | 2022-11-23 12:24:44 -0500 | [diff] [blame] | 77 | - name: Clean out build output |
| 78 | run: rm -rf ./out |
Boris Zbarsky | 583ac0d | 2022-05-28 13:08:33 -0400 | [diff] [blame] | 79 | - name: Build all-cluster-minimal |
Boris Zbarsky | 583ac0d | 2022-05-28 13:08:33 -0400 | [diff] [blame] | 80 | run: | |
| 81 | ./scripts/run_in_build_env.sh \ |
| 82 | "./scripts/build/build_examples.py \ |
Arkadiusz Bokowy | 5529d74 | 2022-12-02 22:23:01 +0100 | [diff] [blame] | 83 | --target imx-all-clusters-minimal-app \ |
| 84 | build" |
rgoliver | 23787d6 | 2022-11-23 12:24:44 -0500 | [diff] [blame] | 85 | - name: Clean out build output |
| 86 | run: rm -rf ./out |
Faqiang Zhu | 0824e95 | 2022-05-02 22:33:16 +0800 | [diff] [blame] | 87 | - name: Build ota-provider-app |
Faqiang Zhu | 0824e95 | 2022-05-02 22:33:16 +0800 | [diff] [blame] | 88 | run: | |
| 89 | ./scripts/run_in_build_env.sh \ |
| 90 | "./scripts/build/build_examples.py \ |
Arkadiusz Bokowy | 5529d74 | 2022-12-02 22:23:01 +0100 | [diff] [blame] | 91 | --target imx-ota-provider-app \ |
| 92 | build" |
rgoliver | 23787d6 | 2022-11-23 12:24:44 -0500 | [diff] [blame] | 93 | - name: Clean out build output |
| 94 | run: rm -rf ./out |