Skip to content

Commit 2ecf439

Browse files
committed
Add supported core and fixes bugs
1 parent dff059a commit 2ecf439

20 files changed

+404
-87
lines changed

.github/workflows/ArduinoBuild_2.yml renamed to .github/workflows/arduino-esp-v2-build-check.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: ArduinoBuild(platform-version 2.x)
1+
name: Build(arduino-esp32:2.x)
22

33
env:
44
SKETCH_NAMES_FIND_START: ./examples/UnitUnified
@@ -8,6 +8,7 @@ on:
88
push:
99
tags-ignore:
1010
- '*.*.*'
11+
- 'v*.*.*'
1112
branches:
1213
- '*'
1314
paths:
@@ -24,7 +25,7 @@ on:
2425
- 'examples/UnitUnified/**.hpp'
2526
- 'examples/UnitUnified/**.h'
2627
- 'examples/UnitUnified/**.c'
27-
- '**ArduinoBuild_2.yml'
28+
- '**arduino-esp-v2-build-check.yml'
2829
pull_request:
2930
paths:
3031
- 'src/unit/**.cpp'
@@ -40,12 +41,12 @@ on:
4041
- 'examples/UnitUnified/**.hpp'
4142
- 'examples/UnitUnified/**.h'
4243
- 'examples/UnitUnified/**.c'
43-
- '**ArduinoBuild_2.yml'
44+
- '**arduino-esp-v2-build-check.yml'
4445
workflow_dispatch:
4546

4647
jobs:
4748
build:
48-
name: ${{ matrix.unit }}:${{ matrix.sketch }}:${{ matrix.board }}@${{ matrix.platform-version }}
49+
name: ${{ matrix.unit }}:${{ matrix.sketch }}:${{matrix.board}}@${{matrix.platform-version}}
4950
runs-on: ubuntu-latest
5051

5152
strategy:
@@ -54,7 +55,6 @@ jobs:
5455
matrix:
5556
platform-url:
5657
- https://espressif.github.io/arduino-esp32/package_esp32_index.json
57-
# - https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
5858

5959
sketch:
6060
- PlotToSerial
@@ -64,14 +64,15 @@ jobs:
6464
- UnitToF4M
6565

6666
board:
67+
- m5stack-atom
68+
- m5stack-atoms3
6769
- m5stack-core-esp32
6870
- m5stack-core2
69-
- m5stack-atoms3
71+
- m5stack-coreink
7072
- m5stack-cores3
73+
- m5stack-fire
7174

7275
platform-version:
73-
#- 2.0.15
74-
#- 2.0.16
7576
- 2.0.17
7677

7778
platform:

.github/workflows/ArduinoBuild_3.yml renamed to .github/workflows/arduino-esp-v3-build-check.yml

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
name: ArduinoBuild(platform-version 3.x)
1+
name: Build(arduino-esp32:3.x)
22

33
env:
44
SKETCH_NAMES_FIND_START: ./examples/UnitUnified
55
REQUIRED_LIBRARIES: M5Unified,M5UnitUnified
6-
76
on:
87
push:
98
tags-ignore:
109
- '*.*.*'
10+
- 'v*.*.*'
1111
branches:
1212
- '*'
1313
paths:
@@ -24,7 +24,7 @@ on:
2424
- 'examples/UnitUnified/**.hpp'
2525
- 'examples/UnitUnified/**.h'
2626
- 'examples/UnitUnified/**.c'
27-
- '**ArduinoBuild_3.yml'
27+
- '**arduino-esp-v3-build-check.yml'
2828
pull_request:
2929
paths:
3030
- 'src/unit/**.cpp'
@@ -40,7 +40,7 @@ on:
4040
- 'examples/UnitUnified/**.hpp'
4141
- 'examples/UnitUnified/**.h'
4242
- 'examples/UnitUnified/**.c'
43-
- '**ArduinoBuild_3.yml'
43+
- '**arduino-esp-v3-build-check.yml'
4444
workflow_dispatch:
4545

4646
jobs:
@@ -54,30 +54,41 @@ jobs:
5454
matrix:
5555
platform-url:
5656
- https://espressif.github.io/arduino-esp32/package_esp32_index.json
57-
# - https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
57+
58+
sketch:
59+
- PlotToSerial
5860

5961
unit:
6062
- UnitToF
6163
- UnitToF4M
6264

63-
sketch:
64-
- PlotToSerial
65-
6665
board:
66+
- m5stack_atom
67+
- m5stack_atoms3
68+
- m5stack_capsule
69+
# - m5stack_cardputer
6770
- m5stack_core
6871
- m5stack_core2
69-
- m5stack_atoms3
72+
- m5stack_coreink
7073
- m5stack_cores3
7174
- m5stack_dial
75+
- m5stack_fire
7276
- m5stack_nanoc6
7377
- m5stack_paper
78+
# - m5stack_poe_cam
79+
# - m5stack_stamp_c3
80+
# - m5stack_stamp_pico
81+
- m5stack_stamp_s3
82+
# - m5stack_station
83+
# - m5stack_stickc
7484
- m5stack_stickc_plus
85+
- m5stack_stickc_plus2
86+
# - m5stack_timer_cam
87+
# - m5stack_tough
88+
# - m5stack_unit_cam
89+
# - m5stack_unit_cams3
7590

7691
platform-version:
77-
#- 3.0.0
78-
#- 3.0.1
79-
#- 3.0.2
80-
#- 3.0.3
8192
- 3.0.4
8293

8394
platform:
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
name: Build(arduino-m5stack)
2+
3+
env:
4+
SKETCH_NAMES_FIND_START: ./examples/UnitUnified
5+
REQUIRED_LIBRARIES: M5Unified,M5UnitUnified
6+
7+
on:
8+
push:
9+
tags-ignore:
10+
- '*.*.*'
11+
- 'v*.*.*'
12+
branches:
13+
- '*'
14+
paths:
15+
- 'src/unit/**.cpp'
16+
- 'src/unit/**.hpp'
17+
- 'src/unit/**.h'
18+
- 'src/unit/**.c'
19+
- 'test/**.cpp'
20+
- 'test/**.hpp'
21+
- 'test/**.h'
22+
- 'test/**.c'
23+
- 'examples/UnitUnified/**.ino'
24+
- 'examples/UnitUnified/**.cpp'
25+
- 'examples/UnitUnified/**.hpp'
26+
- 'examples/UnitUnified/**.h'
27+
- 'examples/UnitUnified/**.c'
28+
- '**arduino-m5-build-check.yml'
29+
pull_request:
30+
paths:
31+
- 'src/unit/**.cpp'
32+
- 'src/unit/**.hpp'
33+
- 'src/unit/**.h'
34+
- 'src/unit/**.c'
35+
- 'test/**.cpp'
36+
- 'test/**.hpp'
37+
- 'test/**.h'
38+
- 'test/**.c'
39+
- 'examples/UnitUnified/**.ino'
40+
- 'examples/UnitUnified/**.cpp'
41+
- 'examples/UnitUnified/**.hpp'
42+
- 'examples/UnitUnified/**.h'
43+
- 'examples/UnitUnified/**.c'
44+
- '**arduino-m5-build-check.yml'
45+
workflow_dispatch:
46+
47+
jobs:
48+
build:
49+
name: ${{ matrix.unit }}:${{ matrix.sketch }}:${{matrix.board}}@${{matrix.platform-version}}
50+
runs-on: ubuntu-latest
51+
52+
strategy:
53+
fail-fast: false
54+
# max-parallel: 1
55+
matrix:
56+
platform-url:
57+
- https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
58+
59+
sketch:
60+
- PlotToSerial
61+
62+
unit:
63+
- UnitToF
64+
- UnitToF4M
65+
66+
board:
67+
- m5stack_atom
68+
- m5stack_atoms3
69+
- m5stack_atoms3r
70+
- m5stack_capsule
71+
# - m5stack_cardputer
72+
- m5stack_core
73+
- m5stack_core2
74+
- m5stack_coreink
75+
- m5stack_cores3
76+
- m5stack_dial
77+
- m5stack_dinmeter
78+
- m5stack_fire
79+
- m5stack_paper
80+
# - m5stack_poe_cam
81+
# - m5stack_stamp_c3
82+
# - m5stack_stamp_pico
83+
- m5stack_stamp_s3
84+
# - m5stack_station
85+
# - m5stack_stickc
86+
- m5stack_stickc_plus
87+
- m5stack_stickc_plus2
88+
# - m5stack_timer_cam
89+
# - m5stack_tough
90+
# - m5stack_unit_cam
91+
# - m5stack_unit_cams3
92+
93+
platform-version:
94+
- 2.1.2
95+
96+
platform:
97+
- m5stack
98+
99+
archi:
100+
- esp32
101+
102+
steps:
103+
- name: Checkout
104+
uses: actions/checkout@v4
105+
with:
106+
ref: ${{ github.event.pull_request.head.sha }}
107+
108+
# Build
109+
- name: Compile examples
110+
uses: ArminJo/arduino-test-compile@master
111+
with:
112+
arduino-board-fqbn: ${{ matrix.platform }}:${{ matrix.archi }}:${{ matrix.board }}
113+
arduino-platform: ${{ matrix.platform }}:${{ matrix.archi }}@${{ matrix.platform-version }}
114+
platform-url: ${{ matrix.platform-url }}
115+
required-libraries: ${{ env.REQUIRED_LIBRARIES }}
116+
extra-arduino-cli-args: ${{ matrix.cli-args }}
117+
#build-properties: ${{ toJson(matrix.build-properties) }}
118+
sketch-names: ${{ matrix.sketch }}.ino
119+
sketch-names-find-start: ${{ env.SKETCH_NAMES_FIND_START }}/${{ matrix.unit }}
120+
#sketches-exclude: ${{ matrix.sketches-exclude }}
121+

.github/workflows/clang-format-check.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ on:
1111
branches:
1212
- '*'
1313
paths:
14-
- '*'
1514
- '**.ino'
1615
- '**.cpp'
1716
- '**.hpp'

0 commit comments

Comments
 (0)