@@ -46,7 +46,7 @@ concurrency:
4646
4747jobs :
4848 build :
49- name : ${{ matrix.build-properties }}:${{ matrix.sketch }}:${{matrix.board}}@${{matrix.platform-version}}
49+ name : ${{ matrix.unit }}:${{ matrix.sketch }}:${{matrix.board}}@${{matrix.platform-version}}
5050 runs-on : ubuntu-latest
5151 timeout-minutes : 5
5252
6060 sketch :
6161 - PlotToSerial
6262
63- # unit:
64- # - UnitFinger
65- # - HatFinger
63+ unit :
64+ - UnitFinger
65+ - UnitFinger2
6666
6767 board :
6868 - m5stack_atom
@@ -100,54 +100,91 @@ jobs:
100100 archi :
101101 - esp32
102102
103- build-properties :
104- - " -DUSING_UNIT_FINGER"
105-
106103 include :
107104 # Specific sketches
108105 - sketch : Capture
106+ unit : UnitFinger
109107 platform-url : https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
110108 platform : esp32
111109 archi : esp32
112110 platform-version : 3.2.1
113111 board : m5stack_core
114- build-properties : " -DUSING_UNIT_FINGER"
115112 - sketch : Characteristic
113+ unit : UnitFinger
116114 platform-url : https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
117115 platform : esp32
118116 archi : esp32
119117 platform-version : 3.2.1
120118 board : m5stack_core
121- build-properties : " -DUSING_UNIT_FINGER"
122119 - sketch : User
120+ unit : UnitFinger
123121 platform-url : https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
124122 platform : esp32
125123 archi : esp32
126124 platform-version : 3.2.1
127125 board : m5stack_core
128- build-properties : " -DUSING_UNIT_FINGER"
126+
127+ - sketch : PlotToSerial
128+ unit : HatFinger
129+ platform-url : https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
130+ platform : esp32
131+ archi : esp32
132+ platform-version : 3.2.1
133+ board : m5stack_stickc_plus
134+ - sketch : PlotToSerial
135+ unit : HatFinger
136+ platform-url : https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
137+ platform : esp32
138+ archi : esp32
139+ platform-version : 3.2.1
140+ board : m5stack_stickc_plus2
129141 - sketch : Capture
142+ unit : HatFinger
130143 platform-url : https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
131144 platform : esp32
132145 archi : esp32
133146 platform-version : 3.2.1
134147 board : m5stack_stickc_plus2
135- build-properties : " -DUSING_HAT_FINGER"
136148 - sketch : Characteristic
149+ unit : HatFinger
137150 platform-url : https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
138151 platform : esp32
139152 archi : esp32
140153 platform-version : 3.2.1
141154 board : m5stack_stickc_plus2
142155 build-properties : " -DUSING_HAT_FINGER"
143156 - sketch : User
157+ unit : HatFinger
144158 platform-url : https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
145159 platform : esp32
146160 archi : esp32
147161 platform-version : 3.2.1
148162 board : m5stack_stickc_plus2
149163 build-properties : " -DUSING_HAT_FINGER"
150164
165+ - sketch : Capture
166+ unit : UnitFinge2r
167+ platform-url : https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
168+ platform : esp32
169+ archi : esp32
170+ platform-version : 3.2.1
171+ board : m5stack_core
172+ - sketch : Automatic
173+ unit : UnitFinger2
174+ platform-url : https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
175+ platform : esp32
176+ archi : esp32
177+ platform-version : 3.2.1
178+ board : m5stack_core
179+ - sketch : User
180+ unit : UnitFinger2
181+ platform-url : https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json
182+ platform : esp32
183+ archi : esp32
184+ platform-version : 3.2.1
185+ board : m5stack_core
186+
187+
151188 steps :
152189 - name : Checkout
153190 uses : actions/checkout@v4
@@ -163,7 +200,7 @@ jobs:
163200 platform-url : ${{ matrix.platform-url }}
164201 required-libraries : ${{ env.REQUIRED_LIBRARIES }}
165202 extra-arduino-cli-args : ${{ matrix.cli-args }}
166- build-properties : ${{ matrix.build-properties }}
203+ build-properties : ${{ matrix.unit == 'UnitFinger' && '-DUSING_UNIT_FINGER' || (matrix.unit == 'HatFinger' && '-DUSING_HAT_FINGER' || '') }}
167204 sketch-names : ${{ matrix.sketch }}.ino
168205 sketch-names-find-start : ${{ env.SKETCH_NAMES_FIND_START }}/${{ matrix.unit }}
169206 # sketches-exclude: ${{ matrix.sketches-exclude }}
0 commit comments