File tree Expand file tree Collapse file tree 1 file changed +56
-0
lines changed
Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments