2d7a2961a2
- Update west.yml - Update samples.yaml to new syntax, board names - Patches to ports/zephyr (some stubs) Verified by: 1. ./zephyr/scripts/twister -p unit_testing -T bacnet-stack/zephyr/tests 2. ./zephyr/scripts/twister -T bacnet-stack/zephyr/samples/ --integration Fix #721 Co-authored-by: Gregory Shue <gregory.shue@legrand.com>
54 lines
1.5 KiB
YAML
54 lines
1.5 KiB
YAML
name: Zephyr OS CMake
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
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-stack
|
|
|
|
- name: Initialize
|
|
working-directory: bacnet-stack
|
|
run: |
|
|
west init -l .
|
|
west update
|
|
|
|
- name: Twister Tests unit_testing
|
|
working-directory: bacnet-stack
|
|
run: |
|
|
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: Twister Tests samples
|
|
working-directory: bacnet-stack
|
|
run: |
|
|
rm -rf twister-out.samples &&
|
|
../zephyr/scripts/twister -O twister-out.samples -T zephyr/samples --integration &&
|
|
for file in CMakeFiles CMakeCache.txt cmake_install.cmake Makefile
|
|
do
|
|
find twister-out.samples -name $file -exec rm -rf {} \; || true
|
|
done
|
|
|
|
- name: Archive firmware
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: firmware
|
|
path: bacnet-stack/twister-out.unit_testing
|