@@ -35,24 +35,27 @@ jobs:
35
35
image : connectedhomeip/chip-build:0.5.56
36
36
volumes :
37
37
- " /tmp/log_output:/tmp/test_logs"
38
- options :
39
- --sysctl "net.ipv6.conf.all.disable_ipv6=0
38
+ options : --sysctl "net.ipv6.conf.all.disable_ipv6=0
40
39
net.ipv4.conf.all.forwarding=1 net.ipv6.conf.all.forwarding=1"
41
40
42
41
steps :
43
42
- name : Dump GitHub context
44
43
env :
45
- GITHUB_CONTEXT : ${{ toJSON(github) }}
44
+ GITHUB_CONTEXT : ${{ toJSON(github) }}
46
45
run : echo "$GITHUB_CONTEXT"
47
46
- name : Dump Concurrency context
48
47
env :
49
- CONCURRENCY_CONTEXT : ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }}
48
+ CONCURRENCY_CONTEXT : ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }}
50
49
run : echo "$CONCURRENCY_CONTEXT"
51
- - name : Checkout
52
- uses : actions/checkout@v2
50
+ -
uses : Wandalen/[email protected]
51
+ name : Checkout
53
52
with :
54
- submodules : true
55
-
53
+ action : actions/checkout@v3
54
+ with : |
55
+ submodules: true
56
+ token: ${{ github.token }}
57
+ attempt_limit : 3
58
+ attempt_delay : 2000
56
59
- name : Bootstrap
57
60
timeout-minutes : 10
58
61
run : scripts/build/gn_bootstrap.sh
62
65
with :
63
66
name : bootstrap-logs
64
67
path : |
65
- .environment/gn_out/.ninja_log
66
- .environment/pigweed-venv/*.log
68
+ .environment/gn_out/.ninja_log
69
+ .environment/pigweed-venv/*.log
67
70
- name : Setup Build
68
71
run : scripts/build/gn_gen.sh --args="chip_config_memory_debug_checks=true chip_config_memory_debug_dmalloc=true"
69
72
- name : Run Build
97
100
run : scripts/run_in_build_env.sh "ninja -C ./out"
98
101
build_linux :
99
102
name : Build on Linux (fake, gcc_release, clang, mbedtls, simulated)
100
- timeout-minutes : 120
103
+ timeout-minutes : 120
101
104
102
105
runs-on : ubuntu-latest
103
106
if : github.actor != 'restyled-io[bot]'
@@ -106,23 +109,27 @@ jobs:
106
109
image : connectedhomeip/chip-build:0.5.56
107
110
volumes :
108
111
- " /tmp/log_output:/tmp/test_logs"
109
- options :
110
- --sysctl "net.ipv6.conf.all.disable_ipv6=0
112
+ options : --sysctl "net.ipv6.conf.all.disable_ipv6=0
111
113
net.ipv4.conf.all.forwarding=1 net.ipv6.conf.all.forwarding=1"
112
114
113
115
steps :
114
116
- name : Dump GitHub context
115
117
env :
116
- GITHUB_CONTEXT : ${{ toJSON(github) }}
118
+ GITHUB_CONTEXT : ${{ toJSON(github) }}
117
119
run : echo "$GITHUB_CONTEXT"
118
120
- name : Dump Concurrency context
119
121
env :
120
- CONCURRENCY_CONTEXT : ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }}
122
+ CONCURRENCY_CONTEXT : ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }}
121
123
run : echo "$CONCURRENCY_CONTEXT"
122
- - name : Checkout
123
- uses : actions/checkout@v2
124
+ -
uses : Wandalen/[email protected]
125
+ name : Checkout
124
126
with :
125
- submodules : true
127
+ action : actions/checkout@v3
128
+ with : |
129
+ submodules: true
130
+ token: ${{ github.token }}
131
+ attempt_limit : 3
132
+ attempt_delay : 2000
126
133
# - name: Initialize CodeQL
127
134
# if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/master' }}
128
135
# uses: github/codeql-action/init@v1
@@ -137,16 +144,16 @@ jobs:
137
144
with :
138
145
name : bootstrap-logs
139
146
path : |
140
- .environment/gn_out/.ninja_log
141
- .environment/pigweed-venv/*.log
147
+ .environment/gn_out/.ninja_log
148
+ .environment/pigweed-venv/*.log
142
149
- name : Setup and Build Simulated Device
143
150
timeout-minutes : 20
144
151
run : |
145
- BUILD_TYPE=simulated
146
- GN_ARGS='chip_tests_zap_config="app1" chip_project_config_include_dirs=["../../examples/placeholder/linux/apps/app1/include", "../../config/standalone"] chip_config_network_layer_ble=false'
147
- CHIP_ROOT_PATH=examples/placeholder/linux
148
- CHIP_ROOT_PATH="$CHIP_ROOT_PATH" BUILD_TYPE="$BUILD_TYPE" scripts/build/gn_gen.sh --args="$GN_ARGS"
149
- scripts/run_in_build_env.sh "ninja -C ./out/$BUILD_TYPE"
152
+ BUILD_TYPE=simulated
153
+ GN_ARGS='chip_tests_zap_config="app1" chip_project_config_include_dirs=["../../examples/placeholder/linux/apps/app1/include", "../../config/standalone"] chip_config_network_layer_ble=false'
154
+ CHIP_ROOT_PATH=examples/placeholder/linux
155
+ CHIP_ROOT_PATH="$CHIP_ROOT_PATH" BUILD_TYPE="$BUILD_TYPE" scripts/build/gn_gen.sh --args="$GN_ARGS"
156
+ scripts/run_in_build_env.sh "ninja -C ./out/$BUILD_TYPE"
150
157
- name : Setup Build, Run Build and Run Tests
151
158
timeout-minutes : 90
152
159
run : |
@@ -167,39 +174,39 @@ jobs:
167
174
env :
168
175
LSAN_OPTIONS : detect_leaks=0
169
176
run : |
170
- # for BUILD_TYPE in asan msan tsan ubsan; do
171
- for BUILD_TYPE in asan tsan ubsan; do
172
- case $BUILD_TYPE in
173
- "asan") GN_ARGS='is_clang=true is_asan=true';;
174
- "msan") GN_ARGS='is_clang=true is_msan=true';;
175
- "tsan") GN_ARGS='is_clang=true is_tsan=true chip_enable_wifi=false';;
176
- "ubsan") GN_ARGS='is_clang=true is_ubsan=true';;
177
- esac
177
+ # for BUILD_TYPE in asan msan tsan ubsan; do
178
+ for BUILD_TYPE in asan tsan ubsan; do
179
+ case $BUILD_TYPE in
180
+ "asan") GN_ARGS='is_clang=true is_asan=true';;
181
+ "msan") GN_ARGS='is_clang=true is_msan=true';;
182
+ "tsan") GN_ARGS='is_clang=true is_tsan=true chip_enable_wifi=false';;
183
+ "ubsan") GN_ARGS='is_clang=true is_ubsan=true';;
184
+ esac
178
185
179
- scripts/build/gn_gen.sh --args="$GN_ARGS"
180
- scripts/tests/gn_tests.sh
181
- done
186
+ scripts/build/gn_gen.sh --args="$GN_ARGS"
187
+ scripts/tests/gn_tests.sh
188
+ done
182
189
- name : Build using build_examples.py
183
190
timeout-minutes : 40
184
191
run : |
185
- ./scripts/run_in_build_env.sh \
186
- "./scripts/build/build_examples.py --no-log-timestamps \
187
- --target linux-x64-all-clusters \
188
- --target linux-x64-all-clusters-ipv6only \
189
- --target linux-x64-chip-tool \
190
- --target linux-x64-chip-tool-ipv6only \
191
- --target linux-x64-minmdns-ipv6only \
192
- --target linux-x64-rpc-console \
193
- --target linux-x64-thermostat-ipv6only \
194
- --target linux-x64-tv-app-ipv6only \
195
- build \
196
- "
192
+ ./scripts/run_in_build_env.sh \
193
+ "./scripts/build/build_examples.py --no-log-timestamps \
194
+ --target linux-x64-all-clusters \
195
+ --target linux-x64-all-clusters-ipv6only \
196
+ --target linux-x64-chip-tool \
197
+ --target linux-x64-chip-tool-ipv6only \
198
+ --target linux-x64-minmdns-ipv6only \
199
+ --target linux-x64-rpc-console \
200
+ --target linux-x64-thermostat-ipv6only \
201
+ --target linux-x64-tv-app-ipv6only \
202
+ build \
203
+ "
197
204
198
205
- name : Run fake linux tests
199
206
timeout-minutes : 15
200
207
run : |
201
- ./scripts/run_in_build_env.sh \
202
- "./scripts/build/build_examples.py --no-log-timestamps --target linux-fake-tests build"
208
+ ./scripts/run_in_build_env.sh \
209
+ "./scripts/build/build_examples.py --no-log-timestamps --target linux-fake-tests build"
203
210
204
211
# TODO Log Upload https://github.com/project-chip/connectedhomeip/issues/2227
205
212
# TODO https://github.com/project-chip/connectedhomeip/issues/1512
@@ -229,32 +236,36 @@ jobs:
229
236
image : connectedhomeip/chip-build:0.5.56
230
237
volumes :
231
238
- " /tmp/log_output:/tmp/test_logs"
232
- options :
233
- --sysctl "net.ipv6.conf.all.disable_ipv6=0
239
+ options : --sysctl "net.ipv6.conf.all.disable_ipv6=0
234
240
net.ipv4.conf.all.forwarding=1 net.ipv6.conf.all.forwarding=1"
235
241
236
242
steps :
237
243
- name : Dump GitHub context
238
244
env :
239
- GITHUB_CONTEXT : ${{ toJSON(github) }}
245
+ GITHUB_CONTEXT : ${{ toJSON(github) }}
240
246
run : echo "$GITHUB_CONTEXT"
241
247
- name : Dump Concurrency context
242
248
env :
243
- CONCURRENCY_CONTEXT : ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }}
249
+ CONCURRENCY_CONTEXT : ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }}
244
250
run : echo "$CONCURRENCY_CONTEXT"
245
- - name : Checkout
246
- uses : actions/checkout@v2
251
+ -
uses : Wandalen/[email protected]
252
+ name : Checkout
247
253
with :
248
- submodules : true
254
+ action : actions/checkout@v3
255
+ with : |
256
+ submodules: true
257
+ token: ${{ github.token }}
258
+ attempt_limit : 3
259
+ attempt_delay : 2000
249
260
- name : Bootstrap
250
261
timeout-minutes : 10
251
262
run : scripts/build/gn_bootstrap.sh
252
263
- name : Setup Build, Run Build and Run Tests
253
264
timeout-minutes : 50
254
265
run : |
255
- scripts/build/gn_gen.sh --args="enable_rtti=true enable_pylib=true chip_config_memory_debug_checks=false chip_config_memory_debug_dmalloc=false"
256
- scripts/run_in_build_env.sh "ninja -C ./out"
257
- scripts/tests/gn_tests.sh
266
+ scripts/build/gn_gen.sh --args="enable_rtti=true enable_pylib=true chip_config_memory_debug_checks=false chip_config_memory_debug_dmalloc=false"
267
+ scripts/run_in_build_env.sh "ninja -C ./out"
268
+ scripts/tests/gn_tests.sh
258
269
- name : Run Python library specific unit tests
259
270
timeout-minutes : 5
260
271
run : |
@@ -267,10 +278,15 @@ jobs:
267
278
if : github.actor != 'restyled-io[bot]'
268
279
269
280
steps :
270
- - name : Checkout
271
- uses : actions/checkout@v2
281
+ -
uses : Wandalen/[email protected]
282
+ name : Checkout
272
283
with :
273
- submodules : true
284
+ action : actions/checkout@v3
285
+ with : |
286
+ submodules: true
287
+ token: ${{ github.token }}
288
+ attempt_limit : 3
289
+ attempt_delay : 2000
274
290
# - name: Initialize CodeQL
275
291
# if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/master' }}
276
292
# uses: github/codeql-action/init@v1
@@ -298,16 +314,16 @@ jobs:
298
314
with :
299
315
name : bootstrap-logs
300
316
path : |
301
- .environment/gn_out/.ninja_log
302
- .environment/pigweed-venv/*.log
317
+ .environment/gn_out/.ninja_log
318
+ .environment/pigweed-venv/*.log
303
319
- name : Setup and Build Simulated Device
304
320
timeout-minutes : 20
305
321
run : |
306
- BUILD_TYPE=simulated
307
- GN_ARGS='chip_tests_zap_config="app1" chip_project_config_include_dirs=["../../examples/placeholder/linux/apps/app1/include", "../../config/standalone"] chip_config_network_layer_ble=false'
308
- CHIP_ROOT_PATH=examples/placeholder/linux
309
- CHIP_ROOT_PATH="$CHIP_ROOT_PATH" BUILD_TYPE="$BUILD_TYPE" scripts/build/gn_gen.sh --args="$GN_ARGS"
310
- scripts/run_in_build_env.sh "ninja -C ./out/$BUILD_TYPE"
322
+ BUILD_TYPE=simulated
323
+ GN_ARGS='chip_tests_zap_config="app1" chip_project_config_include_dirs=["../../examples/placeholder/linux/apps/app1/include", "../../config/standalone"] chip_config_network_layer_ble=false'
324
+ CHIP_ROOT_PATH=examples/placeholder/linux
325
+ CHIP_ROOT_PATH="$CHIP_ROOT_PATH" BUILD_TYPE="$BUILD_TYPE" scripts/build/gn_gen.sh --args="$GN_ARGS"
326
+ scripts/run_in_build_env.sh "ninja -C ./out/$BUILD_TYPE"
311
327
- name : Setup Build, Run Build and Run Tests
312
328
timeout-minutes : 120
313
329
# Just go ahead and do the "all" build; on Darwin that's fairly
0 commit comments