Skip to content

Commit 1cc6cb2

Browse files
authored
Merge pull request #11 from bacnet-stack/chore/add-zephyr-twister-testing-in-pipeline
Add zephyr twister testing in pipeline
2 parents c63c006 + b55f107 commit 1cc6cb2

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/zephyr.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Zephyr OS CMake
2+
3+
on:
4+
push:
5+
branches: [ "default" ]
6+
pull_request:
7+
branches:
8+
- '*'
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
container: zephyrprojectrtos/ci:latest
14+
env:
15+
CMAKE_PREFIX_PATH: /opt/toolchains
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
with:
20+
path: bacnet
21+
22+
- name: Initialize
23+
working-directory: bacnet
24+
run: |
25+
west init -l .
26+
west update
27+
28+
- name: Twister Tests unit_testing
29+
working-directory: bacnet
30+
run: |
31+
rm -rf twister-out.unit_testing &&
32+
../zephyr/scripts/twister -O twister-out.unit_testing -p unit_testing -T zephyr/tests &&
33+
for file in CMakeFiles CMakeCache.txt cmake_install.cmake Makefile
34+
do
35+
find twister-out.unit_testing -name $file -exec rm -rf {} \; || true
36+
done
37+
38+
- name: Archive firmware
39+
uses: actions/upload-artifact@v4
40+
with:
41+
name: firmware
42+
path: bacnet/twister-out.unit_testing

0 commit comments

Comments
 (0)