blob: 28521ff204b599b9578cd4e5235f982655f6d8ae [file] [log] [blame]
ElvenWangaa5d5c72022-02-09 14:44:15 +08001# 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
15name: Build example - i.MX Linux
16
17on:
18 push:
19 pull_request:
Justin Woodbd78b862023-02-14 09:36:28 -080020 merge_group:
ElvenWangaa5d5c72022-02-09 14:44:15 +080021
22concurrency:
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 Bokowy5529d742022-12-02 22:23:01 +010026env:
27 CHIP_NO_LOG_TIMESTAMPS: true
Justin Wood1548bae2023-06-26 18:35:39 -070028
ElvenWangaa5d5c72022-02-09 14:44:15 +080029jobs:
30 imx:
31 name: Linux i.MX Build
ElvenWangaa5d5c72022-02-09 14:44:15 +080032
33 runs-on: ubuntu-latest
34 if: github.actor != 'restyled-io[bot]'
35
36 container:
Justin Woodf0adeef2023-07-14 11:51:49 -070037 image: ghcr.io/project-chip/chip-build-imx:1
ElvenWangaa5d5c72022-02-09 14:44:15 +080038
39 steps:
Justin Wood1548bae2023-06-26 18:35:39 -070040 - name: Checkout
41 uses: actions/checkout@v3
42 - name: Checkout submodules & Bootstrap
43 uses: ./.github/actions/checkout-submodules-and-bootstrap
ElvenWangaa5d5c72022-02-09 14:44:15 +080044 with:
Justin Wood1548bae2023-06-26 18:35:39 -070045 platform: linux
Arkadiusz Bokowy5529d742022-12-02 22:23:01 +010046
47 - name: Build lighting-app
ElvenWangaa5d5c72022-02-09 14:44:15 +080048 run: |
Arkadiusz Bokowy5529d742022-12-02 22:23:01 +010049 ./scripts/run_in_build_env.sh \
50 "./scripts/build/build_examples.py \
51 --target imx-lighting-app \
52 build"
rgoliver23787d62022-11-23 12:24:44 -050053 - name: Clean out build output
54 run: rm -rf ./out
ElvenWangaa5d5c72022-02-09 14:44:15 +080055 - name: Build chip-tool
ElvenWangaa5d5c72022-02-09 14:44:15 +080056 run: |
Arkadiusz Bokowy5529d742022-12-02 22:23:01 +010057 ./scripts/run_in_build_env.sh \
58 "./scripts/build/build_examples.py \
59 --target imx-chip-tool \
60 build"
rgoliver23787d62022-11-23 12:24:44 -050061 - name: Clean out build output
62 run: rm -rf ./out
Faqiang Zhu0824e952022-05-02 22:33:16 +080063 - name: Build thermostat
Faqiang Zhu0824e952022-05-02 22:33:16 +080064 run: |
65 ./scripts/run_in_build_env.sh \
66 "./scripts/build/build_examples.py \
Arkadiusz Bokowy5529d742022-12-02 22:23:01 +010067 --target imx-thermostat \
68 build"
rgoliver23787d62022-11-23 12:24:44 -050069 - name: Clean out build output
70 run: rm -rf ./out
Faqiang Zhu0824e952022-05-02 22:33:16 +080071 - name: Build all-cluster
Faqiang Zhu0824e952022-05-02 22:33:16 +080072 run: |
73 ./scripts/run_in_build_env.sh \
74 "./scripts/build/build_examples.py \
Arkadiusz Bokowy5529d742022-12-02 22:23:01 +010075 --target imx-all-clusters-app \
76 build"
rgoliver23787d62022-11-23 12:24:44 -050077 - name: Clean out build output
78 run: rm -rf ./out
Boris Zbarsky583ac0d2022-05-28 13:08:33 -040079 - name: Build all-cluster-minimal
Boris Zbarsky583ac0d2022-05-28 13:08:33 -040080 run: |
81 ./scripts/run_in_build_env.sh \
82 "./scripts/build/build_examples.py \
Arkadiusz Bokowy5529d742022-12-02 22:23:01 +010083 --target imx-all-clusters-minimal-app \
84 build"
rgoliver23787d62022-11-23 12:24:44 -050085 - name: Clean out build output
86 run: rm -rf ./out
Faqiang Zhu0824e952022-05-02 22:33:16 +080087 - name: Build ota-provider-app
Faqiang Zhu0824e952022-05-02 22:33:16 +080088 run: |
89 ./scripts/run_in_build_env.sh \
90 "./scripts/build/build_examples.py \
Arkadiusz Bokowy5529d742022-12-02 22:23:01 +010091 --target imx-ota-provider-app \
92 build"
rgoliver23787d62022-11-23 12:24:44 -050093 - name: Clean out build output
94 run: rm -rf ./out