Skip to content

Commit ea87421

Browse files
committed
Split AMD64 and ARM64 into separate workflows. Parallelize samples build.
1 parent e4e176c commit ea87421

3 files changed

Lines changed: 172 additions & 81 deletions

File tree

.github/workflows/zephyr-amd64.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Zephyr OS CMake
2+
3+
on:
4+
push:
5+
branches: [ "default" ]
6+
pull_request:
7+
branches:
8+
- '*'
9+
10+
jobs:
11+
test:
12+
name: Twister Tests on AMD64
13+
runs-on: ubuntu-latest
14+
container: zephyrprojectrtos/ci:v0.28.0-amd64
15+
env:
16+
CMAKE_PREFIX_PATH: /opt/toolchains
17+
steps:
18+
- name: Twister Tests unit_testing
19+
working-directory: bacnet
20+
run: |
21+
pwd
22+
./unittest.sh
23+
24+
- name: Archive Test Results
25+
uses: actions/upload-artifact@v4
26+
with:
27+
name: unit_testing
28+
path: bacnet/twister-out.unit_testing

.github/workflows/zephyr-arm64.yml

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
name: Zephyr OS CMake
2+
3+
on:
4+
push:
5+
branches: [ "default" ]
6+
pull_request:
7+
branches:
8+
- '*'
9+
10+
jobs:
11+
sample-hello-world:
12+
name: Build Sample Hello World
13+
runs-on: ubuntu-latest
14+
container: zephyrprojectrtos/ci:v0.28.0-arm64
15+
env:
16+
CMAKE_PREFIX_PATH: /opt/toolchains
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
with:
21+
path: bacnet
22+
- name: Initialize
23+
working-directory: bacnet
24+
run: |
25+
west init -l .
26+
west update
27+
- name: Samples - Hello World
28+
working-directory: bacnet
29+
run: |
30+
pwd
31+
west build -p always -b native_posix ./zephyr/samples/hello_bacnet_stack
32+
- name: Archive Firmware
33+
uses: actions/upload-artifact@v4
34+
with:
35+
name: firmware
36+
path: bacnet/build
37+
38+
sample-bacnet-profile-b-ss:
39+
name: Build Sample BACnet Profile B-SS
40+
runs-on: ubuntu-latest
41+
container: zephyrprojectrtos/ci:v0.28.0-arm64
42+
env:
43+
CMAKE_PREFIX_PATH: /opt/toolchains
44+
steps:
45+
- name: Checkout
46+
uses: actions/checkout@v4
47+
with:
48+
path: bacnet
49+
- name: Initialize
50+
working-directory: bacnet
51+
run: |
52+
west init -l .
53+
west update
54+
- name: Sample - BACnet Profile B-SS
55+
working-directory: bacnet
56+
run: |
57+
pwd
58+
west build -b nucleo_f429zi -p always ./zephyr/samples/profiles/b-ss
59+
- name: Archive Firmware
60+
uses: actions/upload-artifact@v4
61+
with:
62+
name: firmware
63+
path: bacnet/build
64+
65+
sample-bacnet-profile-b-sa:
66+
name: Build Sample BACnet Profile B-SA
67+
runs-on: ubuntu-latest
68+
container: zephyrprojectrtos/ci:v0.28.0-arm64
69+
env:
70+
CMAKE_PREFIX_PATH: /opt/toolchains
71+
steps:
72+
- name: Checkout
73+
uses: actions/checkout@v4
74+
with:
75+
path: bacnet
76+
- name: Initialize
77+
working-directory: bacnet
78+
run: |
79+
west init -l .
80+
west update
81+
- name: Sample - BACnet Profile B-SA
82+
working-directory: bacnet
83+
run: |
84+
pwd
85+
west build -b nucleo_f429zi -p always ./zephyr/samples/profiles/b-sa
86+
- name: Archive Firmware
87+
uses: actions/upload-artifact@v4
88+
with:
89+
name: firmware
90+
path: bacnet/build
91+
92+
sample-bacnet-profile-b-ld:
93+
name: Build Sample BACnet Profile B-LD
94+
runs-on: ubuntu-latest
95+
container: zephyrprojectrtos/ci:v0.28.0-arm64
96+
env:
97+
CMAKE_PREFIX_PATH: /opt/toolchains
98+
steps:
99+
- name: Checkout
100+
uses: actions/checkout@v4
101+
with:
102+
path: bacnet
103+
- name: Initialize
104+
working-directory: bacnet
105+
run: |
106+
west init -l .
107+
west update
108+
- name: Sample - BACnet Profile B-LD
109+
working-directory: bacnet
110+
run: |
111+
pwd
112+
west build -b nucleo_f429zi -p always ./zephyr/samples/profiles/b-ld
113+
- name: Archive Firmware
114+
uses: actions/upload-artifact@v4
115+
with:
116+
name: firmware
117+
path: bacnet/build
118+
119+
sample-bacnet-profile-b-ls:
120+
name: Build Sample BACnet Profile B-LS
121+
runs-on: ubuntu-latest
122+
container: zephyrprojectrtos/ci:v0.28.0-arm64
123+
env:
124+
CMAKE_PREFIX_PATH: /opt/toolchains
125+
steps:
126+
- name: Checkout
127+
uses: actions/checkout@v4
128+
with:
129+
path: bacnet
130+
- name: Initialize
131+
working-directory: bacnet
132+
run: |
133+
west init -l .
134+
west update
135+
- name: Sample - BACnet Profile B-LS
136+
working-directory: bacnet
137+
run: |
138+
pwd
139+
west build -b nucleo_f429zi -p always ./zephyr/samples/profiles/b-ls
140+
- name: Archive Firmware
141+
uses: actions/upload-artifact@v4
142+
with:
143+
name: firmware
144+
path: bacnet/build

.github/workflows/zephyr.yml

Lines changed: 0 additions & 81 deletions
This file was deleted.

0 commit comments

Comments
 (0)