From cd05367e54d17590a4d1a560ca9af263f73d6abe Mon Sep 17 00:00:00 2001 From: Steve Karg Date: Fri, 9 Dec 2022 16:23:55 -0600 Subject: [PATCH] Create zephyr.yml --- .github/workflows/zephyr.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/zephyr.yml diff --git a/.github/workflows/zephyr.yml b/.github/workflows/zephyr.yml new file mode 100644 index 00000000..57fc7611 --- /dev/null +++ b/.github/workflows/zephyr.yml @@ -0,0 +1,35 @@ +name: Zephyr OS CMake + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + container: zephyrprojectrtos/ci:latest + env: + CMAKE_PREFIX_PATH: /opt/toolchains + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + path: bacnet-stack + + - name: Initialize + working-directory: bacnet-stack + run: | + west init -l . + west update + - name: Build firmware + working-directory: bacnet-stack + run: | + west build -b custom_plank ../zephyr/samples/hello_world + - name: Twister Tests + working-directory: bacnet-stack + run: | + ../zephyr/scripts/twister -G --board-root ../zephyr/boards/ --testsuite-root ../zephyr/tests/misc/test_build + - name: Archive firmware + uses: actions/upload-artifact@v2 + with: + name: firmware + path: bacnet-stack/build/zephyr/zephyr.* +