From 1a7a810f1a1a6af04258929eaa6b6bec6fd8390b Mon Sep 17 00:00:00 2001 From: Greg Shue <32416235+gregshue@users.noreply.github.com> Date: Mon, 9 Jan 2023 14:30:02 -0800 Subject: [PATCH] Update zephyr.yml (#368) Update Zephyr CI workflow to Twister to build, run, and archive unit_testing testsuites. --- .github/workflows/zephyr.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/zephyr.yml b/.github/workflows/zephyr.yml index 8dc3fced..ec61355c 100644 --- a/.github/workflows/zephyr.yml +++ b/.github/workflows/zephyr.yml @@ -19,17 +19,19 @@ jobs: run: | west init -l . west update - - name: Build firmware + + - name: Twister Tests unit_testing working-directory: bacnet-stack run: | - west build -b mimxrt1064_evk ../zephyr/samples/hello_world -# - name: Twister Tests -# working-directory: bacnet-stack -# run: | -# ../zephyr/scripts/twister -T ../zephyr/tests/misc/test_build + rm -rf twister-out.unit_testing && + ../zephyr/scripts/twister -O twister-out.unit_testing -p unit_testing -T zephyr/tests && + for file in CMakeFiles CMakeCache.txt cmake_install.cmake Makefile + do + find twister-out.unit_testing -name $file -exec rm -rf {} \; || true + done + - name: Archive firmware uses: actions/upload-artifact@v3 with: name: firmware - path: bacnet-stack/build/zephyr/zephyr.* - + path: bacnet-stack/twister-out.unit_testing