Skip to content

Commit cb692dc

Browse files
authored
Merge pull request #432 from tropicsquare/ETR01SDK-531-Build-Linux-examples-in-CI
ETR01SDK-531: Build Linux examples in CI
2 parents eb15e42 + 1caba24 commit cb692dc

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Build examples for Linux
2+
on:
3+
push:
4+
branches:
5+
- 'develop'
6+
- 'master'
7+
pull_request:
8+
branches:
9+
- 'master'
10+
- 'develop'
11+
12+
jobs:
13+
build_examples:
14+
name: Build examples for Linux
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4.1.7
19+
20+
- name: Setup Python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: '3.x'
24+
25+
- name: Install dependencies
26+
run: |
27+
sudo apt-get install cmake build-essential ninja-build
28+
pip3 install jsonschema
29+
30+
- name: Build SPI examples
31+
run: |
32+
cd examples/linux/spi_devkit/hello_world
33+
cmake ./ -B build -G Ninja
34+
cd build && ninja
35+
36+
cd ../../identify_chip
37+
cmake ./ -B build -G Ninja
38+
cd build && ninja
39+
40+
cd ../../fw_update
41+
cmake ./ -B build -G Ninja
42+
cd build && ninja
43+
44+
- name: Build USB Devkit examples
45+
run: |
46+
cd examples/linux/usb_devkit/hello_world
47+
cmake ./ -B build -G Ninja
48+
cd build && ninja
49+
50+
cd ../../identify_chip
51+
cmake ./ -B build -G Ninja
52+
cd build && ninja
53+
54+
cd ../../fw_update
55+
cmake ./ -B build -G Ninja
56+
cd build && ninja

0 commit comments

Comments
 (0)