30
30
CHIP_NO_LOG_TIMESTAMPS : true
31
31
32
32
jobs :
33
- k32w0 :
34
- name : K32W0
33
+ FreeRTOS :
34
+ name : FREERTOS
35
35
36
36
env :
37
- BUILD_TYPE : gn_k32w
37
+ BUILD_TYPE : gn_FreeRTOS
38
38
39
39
runs-on : ubuntu-latest
40
40
if : github.actor != 'restyled-io[bot]'
41
41
42
42
container :
43
- image : ghcr.io/project-chip/chip-build-nxp:80
43
+ image : ghcr.io/project-chip/chip-build-nxp:81
44
44
volumes :
45
45
- " /tmp/bloat_reports:/tmp/bloat_reports"
46
46
steps :
@@ -50,229 +50,189 @@ jobs:
50
50
uses : ./.github/actions/checkout-submodules-and-bootstrap
51
51
with :
52
52
platform : nxp
53
+ extra-submodule-parameters : --recursive
54
+
55
+ - name : Detect changed paths
56
+ uses : dorny/paths-filter@v3
57
+ id : changed_paths
58
+ with :
59
+ filters : |
60
+ nxp:
61
+ - '**/nxp/**'
53
62
54
63
- name : Set up environment for size reports
55
64
uses : ./.github/actions/setup-size-reports
56
65
if : ${{ !env.ACT }}
57
66
with :
58
67
gh-context : ${{ toJson(github) }}
59
68
60
- - name : Build examples
69
+ - name : Build K32W0 examples
61
70
run : |
62
71
scripts/run_in_build_env.sh "\
63
72
./scripts/build/build_examples.py \
64
- --target nxp-k32w0-freertos-lighting \
65
73
--target nxp-k32w0-freertos-lighting-factory \
66
- --target nxp-k32w0-freertos-lighting-rotating-id \
67
- --target nxp-k32w0-freertos-contact-sensor \
68
- --target nxp-k32w0-freertos-contact-sensor-low-power \
69
74
--target nxp-k32w0-freertos-contact-sensor-low-power-factory \
70
75
build \
71
76
--copy-artifacts-to out/artifacts \
72
77
"
73
- - name : Get lighting app size stats
78
+ - name : Get K32W0 lighting app size stats
74
79
run : |
75
80
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
76
81
nxp k32w0+release light \
77
- out/artifacts/nxp-k32w0-freertos-lighting/chip-k32w0x-light-example.elf \
82
+ out/artifacts/nxp-k32w0-freertos-lighting-factory /chip-k32w0x-light-example.elf \
78
83
/tmp/bloat_reports/
79
- - name : Get contact sensor size stats
84
+ - name : Get K32W0 contact sensor size stats
80
85
run : |
81
86
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
82
87
nxp k32w0+release contact \
83
- out/artifacts/nxp-k32w0-freertos-contact-sensor-low-power/chip-k32w0x-contact-example.elf \
88
+ out/artifacts/nxp-k32w0-freertos-contact-sensor-low-power-factory /chip-k32w0x-contact-example.elf \
84
89
/tmp/bloat_reports/
85
- - name : Uploading Size Reports
86
- uses : ./.github/actions/upload-size-reports
87
- if : ${{ !env.ACT }}
88
- with :
89
- platform-name : K32W0
90
- k32w1 :
91
- name : K32W1
92
-
93
- env :
94
- BUILD_TYPE : gn_k32w
95
-
96
- runs-on : ubuntu-latest
97
- if : github.actor != 'restyled-io[bot]'
98
-
99
- container :
100
- image : ghcr.io/project-chip/chip-build-nxp:81
101
- volumes :
102
- - " /tmp/bloat_reports:/tmp/bloat_reports"
103
- steps :
104
- - name : Checkout
105
- uses : actions/checkout@v4
106
- - name : Checkout submodules & Bootstrap
107
- uses : ./.github/actions/checkout-submodules-and-bootstrap
108
- with :
109
- platform : nxp
110
- extra-submodule-parameters : --recursive
111
90
112
- - name : Set up environment for size reports
113
- uses : ./.github/actions/setup-size-reports
114
- if : ${{ !env.ACT }}
115
- with :
116
- gh-context : ${{ toJson(github) }}
91
+ - name : clean build
92
+ run : rm -rf ./out
117
93
118
- - name : Build examples
94
+ - name : Build K32W1 examples
119
95
run : |
120
96
scripts/run_in_build_env.sh "\
121
97
./scripts/build/build_examples.py \
122
98
--target nxp-k32w1-freertos-lighting \
123
- --target nxp-k32w1-freertos-contact-sensor-low-power \
124
- --target nxp-k32w1-freertos-lock-app \
125
99
build \
126
100
--copy-artifacts-to out/artifacts \
127
101
"
128
- - name : Get lighting app size stats
102
+ - name : Get K32W1 lighting app size stats
129
103
run : |
130
104
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
131
105
nxp k32w1+release light \
132
106
out/artifacts/nxp-k32w1-freertos-lighting/chip-k32w1-light-example.elf \
133
107
/tmp/bloat_reports/
134
- - name : Get contact sensor size stats
135
- run : |
136
- .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
137
- nxp k32w1+release contact \
138
- out/artifacts/nxp-k32w1-freertos-contact-sensor-low-power/chip-k32w1-contact-example.elf \
139
- /tmp/bloat_reports/
140
- - name : Get lock app size stats
141
- run : |
142
- .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
143
- nxp k32w1+release lock \
144
- out/artifacts/nxp-k32w1-freertos-lock-app/chip-k32w1-lock-example.elf \
145
- /tmp/bloat_reports/
146
- - name : Uploading Size Reports
147
- uses : ./.github/actions/upload-size-reports
148
- if : ${{ !env.ACT }}
149
- with :
150
- platform-name : K32W1
151
- mcxw71 :
152
- name : MCXW71
153
108
154
- env :
155
- BUILD_TYPE : gn_k32w
109
+ - name : clean build
110
+ run : rm -rf ./out
156
111
157
- runs-on : ubuntu-latest
158
- if : github.actor != 'restyled-io[bot]'
159
-
160
- container :
161
- image : ghcr.io/project-chip/chip-build-nxp:81
162
- volumes :
163
- - " /tmp/bloat_reports:/tmp/bloat_reports"
164
- steps :
165
- - name : Checkout
166
- uses : actions/checkout@v4
167
- - name : Checkout submodules & Bootstrap
168
- uses : ./.github/actions/checkout-submodules-and-bootstrap
169
- with :
170
- platform : nxp
171
- extra-submodule-parameters : --recursive
172
-
173
- - name : Set up environment for size reports
174
- uses : ./.github/actions/setup-size-reports
175
- if : ${{ !env.ACT }}
176
- with :
177
- gh-context : ${{ toJson(github) }}
178
-
179
- - name : Build examples
112
+ - name : Build MCXW71 examples
180
113
run : |
181
114
scripts/run_in_build_env.sh "\
182
115
./scripts/build/build_examples.py \
183
- --target nxp-mcxw71-freertos-lighting \
184
116
--target nxp-mcxw71-freertos-contact-sensor-low-power \
185
117
--target nxp-mcxw71-freertos-lock-app \
186
118
build \
187
119
--copy-artifacts-to out/artifacts \
188
120
"
189
- - name : Get lighting app size stats
190
- run : |
191
- .environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
192
- nxp mcxw71+release light \
193
- out/artifacts/nxp-mcxw71-freertos-lighting/chip-mcxw71-light-example.elf \
194
- /tmp/bloat_reports/
195
- - name : Get contact sensor size stats
121
+ - name : Get MCXW71 contact sensor size stats
196
122
run : |
197
123
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
198
124
nxp mcxw71+release contact \
199
125
out/artifacts/nxp-mcxw71-freertos-contact-sensor-low-power/chip-mcxw71-contact-example.elf \
200
126
/tmp/bloat_reports/
201
- - name : Get lock app size stats
127
+ - name : Get MCXW71 lock app size stats
202
128
run : |
203
129
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
204
130
nxp mcxw71+release lock \
205
131
out/artifacts/nxp-mcxw71-freertos-lock-app/chip-mcxw71-lock-example.elf \
206
132
/tmp/bloat_reports/
207
- - name : Uploading Size Reports
208
- uses : ./.github/actions/upload-size-reports
209
- if : ${{ !env.ACT }}
210
- with :
211
- platform-name : MCXW71
212
- rw61x :
213
- name : RW61X
214
133
215
- env :
216
- BUILD_TYPE : gn_rw61x
134
+ - name : clean build
135
+ run : rm -rf ./out
217
136
218
- runs-on : ubuntu-latest
219
- if : github.actor != 'restyled-io[bot]'
137
+ - name : Build RT1060 all clusters example app
138
+ run : |
139
+ scripts/run_in_build_env.sh "\
140
+ ./scripts/build/build_examples.py \
141
+ --target nxp-rt1060-freertos-all-clusters-wifi-iw416 \
142
+ --target nxp-rt1060-freertos-all-clusters-wifi-w8801 \
143
+ --target nxp-rt1060-freertos-all-clusters-wifi-ota-evkc-iwx12 \
144
+ build \
145
+ --copy-artifacts-to out/artifacts \
146
+ "
147
+ - name : Build RT1060 thermostat example app
148
+ if : github.event_name == 'push' || steps.changed_paths.outputs.nxp == 'true'
149
+ run : |
150
+ scripts/run_in_build_env.sh "\
151
+ ./scripts/build/build_examples.py \
152
+ --target nxp-rt1060-freertos-thermostat-thread-wifi-evkc-iwx12 \
153
+ build \
154
+ --copy-artifacts-to out/artifacts \
155
+ "
156
+ - name : Build RT1060 laundry-washer example app
157
+ if : github.event_name == 'push' || steps.changed_paths.outputs.nxp == 'true'
158
+ run : |
159
+ scripts/run_in_build_env.sh "\
160
+ ./scripts/build/build_examples.py \
161
+ --target nxp-rt1060-freertos-laundry-washer-wifi-evkc-iwx12 \
162
+ --target nxp-rt1060-freertos-laundry-washer-thread-evkc-iwx12 \
163
+ build \
164
+ --copy-artifacts-to out/artifacts \
165
+ "
220
166
221
- container :
222
- image : ghcr.io/project-chip/chip-build-nxp:81
223
- volumes :
224
- - " /tmp/bloat_reports:/tmp/bloat_reports"
225
- steps :
226
- - name : Checkout
227
- uses : actions/checkout@v4
228
- - name : Checkout submodules & Bootstrap
229
- uses : ./.github/actions/checkout-submodules-and-bootstrap
230
- with :
231
- platform : nxp
232
- extra-submodule-parameters : --recursive
167
+ - name : clean build
168
+ run : rm -rf ./out
233
169
234
- - name : Set up environment for size reports
235
- uses : ./.github/actions/setup-size-reports
236
- if : ${{ !env.ACT }}
237
- with :
238
- gh-context : ${{ toJson(github) }}
170
+ - name : Build RT1170 all clusters example app
171
+ if : github.event_name == 'push' || steps.changed_paths.outputs.nxp == 'true'
172
+ run : |
173
+ scripts/run_in_build_env.sh "\
174
+ ./scripts/build/build_examples.py \
175
+ --target nxp-rt1170-freertos-all-clusters-wifi-iwx12 \
176
+ --target nxp-rt1170-freertos-all-clusters-wifi-ota-iwx12 \
177
+ build \
178
+ --copy-artifacts-to out/artifacts \
179
+ "
180
+ - name : Build RT1170 thermostat example app
181
+ run : |
182
+ scripts/run_in_build_env.sh "\
183
+ ./scripts/build/build_examples.py \
184
+ --target nxp-rt1170-freertos-thermostat-thread-wifi-iwx12 \
185
+ build \
186
+ --copy-artifacts-to out/artifacts \
187
+ "
188
+ - name : Build RT1170 laundry-washer example app
189
+ if : github.event_name == 'push' || steps.changed_paths.outputs.nxp == 'true'
190
+ run : |
191
+ scripts/run_in_build_env.sh "\
192
+ ./scripts/build/build_examples.py \
193
+ --target nxp-rt1170-freertos-laundry-washer-thread-iwx12 \
194
+ build \
195
+ --copy-artifacts-to out/artifacts \
196
+ "
197
+
198
+ - name : clean build
199
+ run : rm -rf ./out
239
200
240
201
- name : Build RW61X all clusters example app
241
202
run : |
242
203
scripts/run_in_build_env.sh "\
243
204
./scripts/build/build_examples.py \
244
205
--target nxp-rw61x-freertos-all-clusters-wifi \
245
- --target nxp-rw61x-freertos-all-clusters-thread \
246
206
--target nxp-rw61x-freertos-all-clusters-wifi-ota-cmake \
247
207
build \
248
208
--copy-artifacts-to out/artifacts \
249
209
"
250
-
251
210
- name : Build RW61X thermostat example app
252
211
run : |
253
212
scripts/run_in_build_env.sh "\
254
213
./scripts/build/build_examples.py \
255
- --target nxp-rw61x-freertos-thermostat-wifi \
256
- --target nxp-rw61x-freertos-thermostat-thread \
257
214
--target nxp-rw61x-freertos-thermostat-thread-wifi \
258
215
build \
259
216
--copy-artifacts-to out/artifacts \
260
217
"
261
-
262
218
- name : Build RW61X laundry-washer example app
219
+ if : github.event_name == 'push' || steps.changed_paths.outputs.nxp == 'true'
263
220
run : |
264
221
scripts/run_in_build_env.sh "\
265
222
./scripts/build/build_examples.py \
266
223
--target nxp-rw61x-freertos-laundry-washer-wifi \
267
- --target nxp-rw61x-freertos-laundry-washer-thread \
268
224
build \
269
225
--copy-artifacts-to out/artifacts \
270
226
"
227
+
228
+ - name : clean build
229
+ run : rm -rf ./out
230
+
271
231
- name : Uploading Size Reports
272
232
uses : ./.github/actions/upload-size-reports
273
233
if : ${{ !env.ACT }}
274
234
with :
275
- platform-name : RW61X
235
+ platform-name : NXP-FREERTOS
276
236
zephyr :
277
237
name : ZEPHYR
278
238
@@ -289,8 +249,15 @@ jobs:
289
249
uses : ./.github/actions/checkout-submodules-and-bootstrap
290
250
with :
291
251
platform : nxp
292
-
252
+ - name : Detect changed paths
253
+ uses : dorny/paths-filter@v3
254
+ id : changed_paths
255
+ with :
256
+ filters : |
257
+ nxp:
258
+ - '**/nxp/**'
293
259
- name : Build NXP Zephyr examples
260
+ if : github.event_name == 'push' || steps.changed_paths.outputs.nxp == 'true'
294
261
run : |
295
262
scripts/run_in_build_env.sh "\
296
263
./scripts/build/build_examples.py \
0 commit comments