Reduce Zephyr test time

This commit is contained in:
Sergio R. Caprile committed 2022-11-14 18:06:00 -03:00
1 parent f8445a4c85
commit 21e8b08ed9
2 files changed
+41 -13

No files matched your search

+12 -13
View File
@@ -121,19 +121,18 @@ jobs:
- uses: actions/checkout@v3
- name: ${{ matrix.example.path }}
run: make -C examples/${{ matrix.example.path }} build
matrix_zephyr_examples:
zephyr_examples:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
zephyrexample:
- path: zephyr/device-dashboard
- path: zephyr/http-client
- path: zephyr/http-server
- path: zephyr/mqtt-aws-client
- path: zephyr/websocket-server
name: ${{ matrix.zephyrexample.name }}
steps:
- uses: actions/checkout@v3
- name: ${{ matrix.zephyrexample.path }}
run: make -C examples/${{ matrix.zephyrexample.path }} zephyr build
- run: make -C examples/zephyr init
- name: minify manifest
uses: mikefarah/yq@master
with:
cmd: yq -i eval '(.manifest.defaults, .manifest.remotes, .manifest.projects[] | select(.name == "cmsis" or .name == "hal_stm32" or .name == "mbedtls" or .name == "mcuboot" or .name == "picolibc" | del(.null) ), .manifest.self) as $i ireduce({};setpath($i | path; $i)) | del(.manifest.projects.[].null) | del(..|select(length==0))' examples/zephyr/zephyrproject/zephyr/west.yml
- run: make -C examples/zephyr update
- run: make -C examples/zephyr/device-dashboard build
- run: make -C examples/zephyr/http-client build
- run: make -C examples/zephyr/http-server build
- run: make -C examples/zephyr/mqtt-aws-client build
- run: make -C examples/zephyr/websocket-server build