Skip to content

Commit 66dec12

Browse files
committed
Add build unittest
1 parent 6d96337 commit 66dec12

File tree

1 file changed

+115
-0
lines changed

1 file changed

+115
-0
lines changed
Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
name: Build(platformio)
2+
3+
on:
4+
push:
5+
tags-ignore:
6+
- '*.*.*'
7+
- 'v*.*.*'
8+
branches:
9+
- '*'
10+
paths:
11+
- 'src/unit/**.cpp'
12+
- 'src/unit/**.hpp'
13+
- 'src/unit/**.h'
14+
- 'src/unit/**.c'
15+
- 'test/**.cpp'
16+
- 'test/**.hpp'
17+
- 'test/**.h'
18+
- 'test/**.c'
19+
- '**platformio-build-check.yml'
20+
- '**platformio.ini'
21+
pull_request:
22+
paths:
23+
- 'src/unit/**.cpp'
24+
- 'src/unit/**.hpp'
25+
- 'src/unit/**.h'
26+
- 'src/unit/**.c'
27+
- 'test/**.cpp'
28+
- 'test/**.hpp'
29+
- 'test/**.h'
30+
- 'test/**.c'
31+
- '**platformio-build-check.yml'
32+
- '**platformio.ini'
33+
workflow_dispatch:
34+
35+
jobs:
36+
build:
37+
name: ${{ matrix.board }}:${{ matrix.framework }}:${{ matrix.espressif32 }}
38+
runs-on: ubuntu-latest
39+
40+
strategy:
41+
fail-fast: false
42+
#max-parallel: 1
43+
44+
matrix:
45+
board:
46+
- Core
47+
- Core2
48+
- CoreS3
49+
- Fire
50+
- StampS3
51+
- Dial
52+
- AtomMatrix
53+
- AtomS3
54+
- AtomS3R
55+
- NanoC6
56+
- StickCPlus
57+
- StickCPlus2
58+
- Paper
59+
- CoreInk
60+
61+
framework:
62+
- Arduino
63+
64+
espressif32:
65+
- latest
66+
# - '5_4_0'
67+
# - '4_4_0'
68+
69+
# exclude:
70+
# - board: CoreS3
71+
# espressif32: '5_4_0'
72+
# - board: CoreS3
73+
# espressif32: '4_4_0'
74+
# - board: StampS3
75+
# espressif32: '5_4_0'
76+
# - board: StampS3
77+
# espressif32: '4_4_0'
78+
# - board: AtomS3
79+
# espressif32: '5_4_0'
80+
# - board: AtomS3
81+
# espressif32: '4_4_0'
82+
# - board: Dial
83+
# espressif32: '5_4_0'
84+
# - board: Dial
85+
# espressif32: '4_4_0'
86+
# - board: NanoC6
87+
# espressif32: '5_4_0'
88+
# - board: NanoC6
89+
# espressif32: '4_4_0'
90+
# - board: StickCPlus
91+
# espressif32: '5_4_0'
92+
# - board: StickCPlus
93+
# espressif32: '4_4_0'
94+
# - board: Paper
95+
# espressif32: '5_4_0'
96+
# - board: Paper
97+
# espressif32: '4_4_0'
98+
99+
steps:
100+
- name: Checkout
101+
uses: actions/checkout@v4
102+
with:
103+
ref: ${{ github.event.pull_request.head.sha }}
104+
105+
- name: Build examples
106+
uses: m5stack/M5Utility/.github/actions/pio_build_test@develop
107+
with:
108+
environments: test_${{ matrix.board }}
109+
# targets:
110+
project-dir: "./"
111+
project-conf: "./platformio.ini"
112+
# jobs: 6
113+
# silent: false
114+
# verbose: true
115+
# disable-auto-clean: false

0 commit comments

Comments
 (0)