forked from open62541/open62541
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 1.05 KB
/
build_zephyr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Zephyr Build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Build open62541 for Zephyr
run: |
sudo apt update
sudo apt -y install python3 python3-pip git cmake build-essential \
ninja-build gperf ccache dfu-util device-tree-compiler wget \
python3-dev python3-setuptools python3-tk python3-wheel xz-utils file \
make gcc gcc-multilib g++-multilib libsdl2-dev libmagic1 curl
python3 -m pip install west
wget https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.17.0/zephyr-sdk-0.17.0_linux-x86_64.tar.xz
tar xf zephyr-sdk-0.17.0_linux-x86_64.tar.xz
./zephyr-sdk-0.17.0/setup.sh -t all -h -c
cd examples/zephyr
west init -l server
west update
python3 -m pip install -r zephyr/scripts/requirements.txt
cd server
west build -p -b native_sim