Added some samples building to pipeline workflow. #51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Zephyr OS CMake | |
| on: | |
| push: | |
| branches: [ "default" ] | |
| pull_request: | |
| branches: | |
| - '*' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| container: zephyrprojectrtos/ci:latest | |
| env: | |
| CMAKE_PREFIX_PATH: /opt/toolchains | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| path: bacnet | |
| - name: Initialize | |
| working-directory: bacnet | |
| run: | | |
| west init -l . | |
| west update | |
| - name: Samples - Hello World | |
| working-directory: bacnet | |
| run: | | |
| west build -p always -b native_posix zephyr/samples/hello_world | |
| - name: Samples - BACnet Profile B-SS | |
| working-directory: bacnet | |
| run: | | |
| west build -b nucleo_f429zi -p always bacnet/zephyr/samples/profiles/b-ss/ | |
| - name: Archive Firmware | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: firmware | |
| path: bacnet/build | |
| - name: Twister Tests unit_testing | |
| working-directory: bacnet | |
| run: | | |
| pwd | |
| ./unittest.sh | |
| - name: Archive Test Results | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: unit_testing | |
| path: bacnet/twister-out.unit_testing |