68
68
run : scripts/build/gn_gen.sh --args="chip_config_memory_debug_checks=true chip_config_memory_debug_dmalloc=true"
69
69
- name : Run Build
70
70
timeout-minutes : 20
71
- run : scripts/build/gn_build .sh
71
+ run : scripts/run_in_build_env .sh "ninja -C ./out"
72
72
- name : Run Tests
73
73
timeout-minutes : 2
74
74
run : scripts/tests/gn_tests.sh
@@ -84,12 +84,12 @@ jobs:
84
84
run : scripts/build/gn_gen.sh --args="chip_detail_logging=false"
85
85
- name : Run Build Without Detail Logging
86
86
timeout-minutes : 20
87
- run : scripts/build/gn_build .sh
87
+ run : scripts/run_in_build_env .sh "ninja -C ./out"
88
88
- name : Setup Build Without Progress Logging
89
89
run : scripts/build/gn_gen.sh --args="chip_detail_logging=false chip_progress_logging=false"
90
90
- name : Run Build Without Progress Logging
91
91
timeout-minutes : 20
92
- run : scripts/build/gn_build .sh
92
+ run : scripts/run_in_build_env .sh "ninja -C ./out"
93
93
build_linux :
94
94
name : Build on Linux (gcc_release, clang, mbedtls)
95
95
timeout-minutes : 60
@@ -146,7 +146,7 @@ jobs:
146
146
esac
147
147
148
148
scripts/build/gn_gen.sh --args="$GN_ARGS"
149
- scripts/build/gn_build .sh
149
+ scripts/run_in_build_env .sh "ninja -C ./out"
150
150
scripts/tests/gn_tests.sh
151
151
done
152
152
- name : Build using build_examples.py
@@ -156,7 +156,7 @@ jobs:
156
156
run : |
157
157
./scripts/run_in_build_env.sh \
158
158
"./scripts/build/build_examples.py --no-log-timestamps --target-glob 'linux-x64-*' build"
159
-
159
+
160
160
# TODO Log Upload https://github.com/project-chip/connectedhomeip/issues/2227
161
161
# TODO https://github.com/project-chip/connectedhomeip/issues/1512
162
162
# - name: Run Code Coverage
@@ -202,64 +202,23 @@ jobs:
202
202
uses : actions/checkout@v2
203
203
with :
204
204
submodules : true
205
- # - name: Initialize CodeQL
206
- # if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/master' }}
207
- # uses: github/codeql-action/init@v1
208
- # with:
209
- # languages: "cpp"
210
-
211
205
- name : Bootstrap
212
206
timeout-minutes : 10
213
207
run : scripts/build/gn_bootstrap.sh
214
- # - name: Uploading bootstrap logs
215
- # uses: actions/upload-artifact@v2
216
- # if: ${{ always() }}
217
- # with:
218
- # name: bootstrap-logs
219
- # path: |
220
- # .environment/gn_out/.ninja_log
221
- # .environment/pigweed-venv/*.log
222
208
- name : Setup Build, Run Build and Run Tests
223
209
timeout-minutes : 50
224
210
run : |
225
- for BUILD_TYPE in python_lib; do
226
- case $BUILD_TYPE in
227
- "python_lib") GN_ARGS='enable_rtti=true enable_pylib=true chip_config_memory_debug_checks=false chip_config_memory_debug_dmalloc=false';;
228
- esac
229
-
230
- scripts/build/gn_gen.sh --args="$GN_ARGS"
231
- scripts/build/gn_build.sh
232
- scripts/tests/gn_tests.sh
233
- done
211
+ scripts/build/gn_gen.sh --args="enable_rtti=true enable_pylib=true chip_config_memory_debug_checks=false chip_config_memory_debug_dmalloc=false"
212
+ scripts/run_in_build_env.sh "ninja -C ./out"
213
+ scripts/tests/gn_tests.sh
234
214
- name : Run Python library specific unit tests
235
215
timeout-minutes : 5
236
216
run : |
237
217
scripts/run_in_build_env.sh 'pip3 install ./out/controller/python/chip-0.0-cp37-abi3-linux_x86_64.whl'
238
218
scripts/run_in_build_env.sh '(cd src/controller/python/test/unit_tests/ && python3 -m unittest -v)'
239
- # TODO Log Upload https://github.com/project-chip/connectedhomeip/issues/2227
240
- # TODO https://github.com/project-chip/connectedhomeip/issues/1512
241
- # - name: Run Code Coverage
242
- # if: ${{ contains('main', env.BUILD_TYPE) }}
243
- # run: scripts/tools/codecoverage.sh
244
- # - name: Upload Code Coverage
245
- # if: ${{ contains('main', env.BUILD_TYPE) }}
246
- # run: bash <(curl -s https://codecov.io/bash)
247
- # - name: Remove third_party binaries for CodeQL Analysis
248
- # run: find out -type d -name "third_party" -exec rm -rf {} +
249
- # - name: Remove dbus binaries for CodeQL Analysis
250
- # run: find out -type d -name "dbus" -exec rm -rf {} +
251
- # - name: Remove nrfxlib binaries for CodeQL Analysis
252
- # run: find . -type d -name "nrfxlib" -exec rm -rf {} +
253
- # - name: Perform CodeQL Analysis
254
- # if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/master' }}
255
- # uses: github/codeql-action/analyze@v1
256
219
build_darwin :
257
220
name : Build on Darwin (clang, python_lib)
258
221
timeout-minutes : 90
259
-
260
- env :
261
- BUILD_TYPE : clang
262
-
263
222
runs-on : macos-latest
264
223
if : github.actor != 'restyled-io[bot]'
265
224
@@ -305,7 +264,7 @@ jobs:
305
264
"python_lib") GN_ARGS='enable_rtti=true enable_pylib=true';;
306
265
esac
307
266
scripts/build/gn_gen.sh --args="$GN_ARGS"
308
- scripts/build/gn_build .sh
267
+ scripts/run_in_build_env .sh "ninja -C ./out"
309
268
scripts/tests/gn_tests.sh
310
269
done
311
270
- name : Uploading diagnostic logs
0 commit comments