forked from SiliconLabsSoftware/matter_extension
-
Notifications
You must be signed in to change notification settings - Fork 0
274 lines (247 loc) · 9.38 KB
/
dev-apps-builder.yaml
File metadata and controls
274 lines (247 loc) · 9.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
name: Build Dev apps
on:
pull_request:
branches:
- main
- "release_*"
schedule:
- cron: "5 0 * * 5" # Thursday at 8:05 PM EDT
workflow_dispatch:
inputs:
build-type:
description: "The build type to use"
required: true
type: choice
options:
- standard
- full
concurrency:
group: dev-build-examples-${{ github.ref }}
cancel-in-progress: true
jobs:
set-build-type:
runs-on: ubuntu-latest
outputs:
build-type: ${{ steps.set-build-type.outputs.build-type }}
steps:
- name: Set build-type based on event
id: set-build-type
run: |
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
echo "build-type=${{ github.event.inputs.build-type }}" >> $GITHUB_OUTPUT
elif [[ "${{ github.event_name }}" == "schedule" ]]; then
echo "build-type=full" >> $GITHUB_OUTPUT
elif [[ "${{ github.event_name }}" == "pull_request" ]]; then
echo "build-type=standard" >> $GITHUB_OUTPUT
fi
cache-tools:
runs-on: ubuntu-latest
permissions:
contents: read
actions: write
outputs:
cache-key: ${{ steps.cache-tools.outputs.cache-key }}
steps:
- name: Checkout
uses: actions/checkout@v6
- uses: ./.github/actions/cache-tools
id: cache-tools
build-lighting-app:
name: Build Lighting App
needs: [set-build-type, cache-tools]
uses: ./.github/workflows/platform-builder.yaml
with:
example-app: "lighting-app"
build-type: ${{ needs.set-build-type.outputs.build-type }}
trustzone-support: true
build-air-quality-sensor-app:
name: Build Air Quality Sensor App
needs: [set-build-type, cache-tools]
uses: ./.github/workflows/platform-builder.yaml
with:
example-app: "air-quality-sensor-app"
build-type: ${{ needs.set-build-type.outputs.build-type }}
build-light-switch-app:
name: Build Light Switch App
needs: [set-build-type, cache-tools]
uses: ./.github/workflows/platform-builder.yaml
with:
example-app: "light-switch-app"
build-type: ${{ needs.set-build-type.outputs.build-type }}
build-lock-app:
name: Build Lock App
needs: [set-build-type, cache-tools]
uses: ./.github/workflows/platform-builder.yaml
with:
example-app: "lock-app"
build-type: ${{ needs.set-build-type.outputs.build-type }}
ncp-917-support: true
build-thermostat-app:
name: Build Thermostat App
needs: [set-build-type, cache-tools]
uses: ./.github/workflows/platform-builder.yaml
with:
example-app: "thermostat"
build-type: ${{ needs.set-build-type.outputs.build-type }}
ncp-917-support: true
build-window-app:
name: Build Window App
needs: [set-build-type, cache-tools]
uses: ./.github/workflows/platform-builder.yaml
with:
example-app: "window-app"
build-type: ${{ needs.set-build-type.outputs.build-type }}
ncp-917-support: true
build-fan-control-app:
name: Build Fan Control App
needs: [set-build-type, cache-tools]
uses: ./.github/workflows/platform-builder.yaml
with:
example-app: "fan-control-app"
build-type: ${{ needs.set-build-type.outputs.build-type }}
ncp-917-support: true
build-closure-app:
name: Build Closure App
needs: [set-build-type, cache-tools]
uses: ./.github/workflows/platform-builder.yaml
with:
example-app: "closure-app"
build-type: ${{ needs.set-build-type.outputs.build-type }}
build-multi-sensor-app:
name: Build Multi Sensor App
needs: [set-build-type, cache-tools]
uses: ./.github/workflows/platform-builder.yaml
with:
example-app: "multi-sensor-app"
build-type: ${{ needs.set-build-type.outputs.build-type }}
build-onoff-plug-app:
name: Build OnOff Plug App
needs: [set-build-type, cache-tools]
uses: ./.github/workflows/platform-builder.yaml
with:
example-app: "onoff-plug-app"
build-type: ${{ needs.set-build-type.outputs.build-type }}
build-refrigerator-app:
name: Build Refrigerator App
needs: [set-build-type, cache-tools]
uses: ./.github/workflows/platform-builder.yaml
with:
example-app: "refrigerator-app"
build-type: ${{ needs.set-build-type.outputs.build-type }}
build-evse-app:
name: Build EVSE App
needs: [set-build-type, cache-tools]
uses: ./.github/workflows/platform-builder.yaml
with:
example-app: "evse-app"
build-type: ${{ needs.set-build-type.outputs.build-type }}
wifi-soc-support: true
build-performance-test-app:
name: Build Performance Test App
needs: [set-build-type, cache-tools]
uses: ./.github/workflows/platform-builder.yaml
with:
example-app: "performance-test-app"
build-type: ${{ needs.set-build-type.outputs.build-type }}
wifi-soc-support: false
build-zigbee-matter-light-app:
name: Build Zigbee Matter Light App
needs: [set-build-type, cache-tools]
uses: ./.github/workflows/platform-builder.yaml
with:
example-app: "zigbee-matter-light"
build-type: ${{ needs.set-build-type.outputs.build-type }}
thread-keyword: ""
mg24-internal-support: false
mgm24-support: false
mgm24-internal-support: false
wifi-soc-support: false
build-oven-app:
name: Build Oven App
needs: [set-build-type, cache-tools]
uses: ./.github/workflows/platform-builder.yaml
with:
example-app: "oven-app"
build-type: ${{ needs.set-build-type.outputs.build-type }}
thread-support: false
build-rangehood-app:
name: Build Rangehood App
needs: [set-build-type, cache-tools]
uses: ./.github/workflows/platform-builder.yaml
with:
example-app: "rangehood-app"
build-type: ${{ needs.set-build-type.outputs.build-type }}
thread-support: false
build-platform-template:
name: Build Platform Template
needs: [set-build-type, cache-tools]
uses: ./.github/workflows/platform-builder.yaml
with:
example-app: "platform-template"
build-type: ${{ needs.set-build-type.outputs.build-type }}
build-sqa-tools:
name: Build SQA Tools
needs: [set-build-type, cache-tools]
uses: ./.github/workflows/sqa-tools-builder.yaml
with:
build-type: ${{ needs.set-build-type.outputs.build-type }}
merge-apps:
name: Merge App Artifacts
runs-on: ubuntu-latest
needs:
- set-build-type
- cache-tools
- build-sqa-tools
- build-lighting-app
- build-air-quality-sensor-app
- build-light-switch-app
- build-lock-app
- build-thermostat-app
- build-window-app
- build-fan-control-app
- build-multi-sensor-app
- build-onoff-plug-app
- build-refrigerator-app
- build-evse-app
- build-performance-test-app
- build-platform-template
- build-zigbee-matter-light-app
- build-closure-app
- build-oven-app
- build-rangehood-app
if: success()
steps:
- name: Merge artifacts
uses: actions/upload-artifact/merge@v7
with:
name: "dev-artifacts-${{ needs.set-build-type.outputs.build-type }}"
delete-merged: true
pattern: "*-${{ needs.set-build-type.outputs.build-type }}"
wait-for-test-results:
name: Wait for Test Results
needs: merge-apps
uses: ./.github/workflows/sqa-sanity-tests.yaml
secrets:
SILABSSW_MATTER_CI_BOT_APP_PRIVATE_KEY: ${{ secrets.SILABSSW_MATTER_CI_BOT_APP_PRIVATE_KEY }}
build-sqa-apps:
name: Build SQA apps
needs: wait-for-test-results
if: ${{ github.ref_name == 'main' || startsWith(github.ref_name, 'release_') }}
permissions:
contents: read
actions: write
uses: ./.github/workflows/sqa-apps-builder.yaml
delete-cache:
name: Delete tools cache
needs: [build-sqa-apps, cache-tools]
if: always()
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- name: Delete tools cache
run: |
curl -s -X DELETE \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
"https://api.github.com/repos/${{ github.repository }}/actions/caches?key=${{ needs.cache-tools.outputs.cache-key }}"