1212 branches :
1313 - ' *'
1414 paths :
15- - ' src/unit/ **.cpp'
16- - ' src/unit/ **.hpp'
17- - ' src/unit/ **.h'
18- - ' src/unit/ **.c'
15+ - ' src/**.cpp'
16+ - ' src/**.hpp'
17+ - ' src/**.h'
18+ - ' src/**.c'
1919 - ' examples/UnitUnified/**.ino'
2020 - ' examples/UnitUnified/**.cpp'
2121 - ' examples/UnitUnified/**.hpp'
2222 - ' examples/UnitUnified/**.h'
2323 - ' examples/UnitUnified/**.c'
24- - ' ** arduino-esp-v3-build-check.yml'
24+ - ' .github/workflows/ arduino-esp-v3-build-check.yml'
2525 pull_request :
2626 paths :
27- - ' src/unit/ **.cpp'
28- - ' src/unit/ **.hpp'
29- - ' src/unit/ **.h'
30- - ' src/unit/ **.c'
27+ - ' src/**.cpp'
28+ - ' src/**.hpp'
29+ - ' src/**.h'
30+ - ' src/**.c'
3131 - ' examples/UnitUnified/**.ino'
3232 - ' examples/UnitUnified/**.cpp'
3333 - ' examples/UnitUnified/**.hpp'
3434 - ' examples/UnitUnified/**.h'
3535 - ' examples/UnitUnified/**.c'
36- - ' ** arduino-esp-v3-build-check.yml'
36+ - ' .github/workflows/ arduino-esp-v3-build-check.yml'
3737 workflow_dispatch :
3838
3939defaults :
@@ -46,103 +46,117 @@ concurrency:
4646
4747jobs :
4848 build :
49- name : ${{ matrix.unit }}:${{ matrix.sketch }}:${{matrix.board}}@${{matrix.platform-version}}
49+ name : ${{ matrix.nfctype }}:${{ matrix.sketch }}:${{matrix.board}}@${{matrix.platform-version}}
5050 runs-on : ubuntu-latest
51- timeout-minutes : 5
51+ timeout-minutes : 12
5252
5353 strategy :
5454 fail-fast : false
5555 max-parallel : 20
56-
5756 matrix :
5857 platform-url :
5958 - https://espressif.github.io/arduino-esp32/package_esp32_index.json
6059
60+ nfctype :
61+ - NFCA
62+
6163 sketch :
6264 - Detect
6365
64- unit :
65- - ' '
66+ build-properties :
67+ - " -DUSING_UNIT_RFID2 "
6668
6769 board :
70+ - arduino_nesso_n1
6871 - m5stack_atom
6972 - m5stack_atoms3
7073 - m5stack_capsule
71- # - m5stack_cardputer
74+ - m5stack_cardputer
7275 - m5stack_core
7376 - m5stack_core2
7477 - m5stack_coreink
7578 - m5stack_cores3
7679 - m5stack_dial
80+ - m5stack_dinmeter
7781 - m5stack_fire
7882 - m5stack_nanoc6
7983 - m5stack_paper
80- # - m5stack_poe_cam
81- # - m5stack_stamp_c3
82- # - m5stack_stamp_pico
8384 - m5stack_stamp_s3
84- # - m5stack_station
85- # - m5stack_stickc
8685 - m5stack_stickc_plus
8786 - m5stack_stickc_plus2
88- # - m5stack_timer_cam
89- # - m5stack_tough
90- # - m5stack_unit_cam
91- # - m5stack_unit_cams3
87+ - m5stack_tab5
88+
89+ platform-version :
90+ - 3.3.6
9291
92+ platform :
93+ - esp32
94+
95+ archi :
96+ - esp32
9397
9498 include :
9599 # Specific sketches
96100 - sketch : Dump
101+ nfctype : NFCA
97102 platform-url : https://espressif.github.io/arduino-esp32/package_esp32_index.json
98- platform-version : 3.0.4
99103 platform : esp32
100104 archi : esp32
105+ platform-version : 3.3.6
101106 board : m5stack_core
107+ build-properties : " -DUSING_UNIT_RFID2"
102108 - sketch : ValueBlock
109+ nfctype : NFCA
103110 platform-url : https://espressif.github.io/arduino-esp32/package_esp32_index.json
104- platform-version : 3.0.4
105111 platform : esp32
106112 archi : esp32
113+ platform-version : 3.3.6
107114 board : m5stack_core
115+ build-properties : " -DUSING_UNIT_RFID2"
108116 - sketch : ReadWrite
117+ nfctype : NFCA
109118 platform-url : https://espressif.github.io/arduino-esp32/package_esp32_index.json
110- platform-version : 3.0.4
111119 platform : esp32
112120 archi : esp32
121+ platform-version : 3.3.6
113122 board : m5stack_core
123+ build-properties : " -DUSING_UNIT_RFID2"
114124 - sketch : NDEF
125+ nfctype : NFCA
115126 platform-url : https://espressif.github.io/arduino-esp32/package_esp32_index.json
116- platform-version : 3.0.4
117127 platform : esp32
118128 archi : esp32
129+ platform-version : 3.3.6
119130 board : m5stack_core
120-
121- platform-version :
122- - 3.1.3
123-
124- platform :
125- - esp32
126-
127- archi :
128- - esp32
131+ build-properties : " -DUSING_UNIT_RFID2"
129132
130133 steps :
131134 - name : Checkout
132135 uses : actions/checkout@v4
133- with :
134- ref : ${{ github.event.pull_request.head.sha }}
135136
136- # Build
137+ - name : Prepare libraries list
138+ id : libs
139+ run : |
140+ {
141+ echo "yaml<<EOF"
142+ echo "$REQUIRED_LIBRARIES" | tr ',' '\n' | while read -r lib; do
143+ echo "- name: $lib"
144+ done
145+ echo "- source-path: ./"
146+ echo "EOF"
147+ } >> "$GITHUB_OUTPUT"
148+
137149 - name : Compile examples
138- uses : ArminJo/ arduino-test- compile@master
150+ uses : arduino/ compile-sketches@v1
139151 with :
140- arduino-board-fqbn : ${{ matrix.platform }}:${{ matrix.archi }}:${{ matrix.board }}
141- arduino-platform : ${{ matrix.platform }}:${{ matrix.archi }}@${{ matrix.platform-version }}
142- platform-url : ${{ matrix.platform-url }}
143- required-libraries : ${{ env.REQUIRED_LIBRARIES }}
144- extra-arduino-cli-args : ${{ matrix.cli-args }}
145- # build-properties: ${{ toJson(matrix.build-properties) }}
146- sketch-names : ${{ matrix.sketch }}.ino
147- sketch-names-find-start : ${{ env.SKETCH_NAMES_FIND_START }}/${{ matrix.unit }}
148- # sketches-exclude: ${{ matrix.sketches-exclude }}
152+ fqbn : ${{ matrix.platform }}:${{ matrix.archi }}:${{ matrix.board }}
153+ platforms : |
154+ - name: ${{ matrix.platform }}:${{ matrix.archi }}
155+ source-url: ${{ matrix.platform-url }}
156+ version: ${{ matrix.platform-version }}
157+ libraries : ${{ steps.libs.outputs.yaml }}
158+ sketch-paths : |
159+ - ${{ env.SKETCH_NAMES_FIND_START }}/${{ matrix.nfctype }}/${{ matrix.sketch }}
160+ cli-compile-flags : |
161+ - --build-property
162+ - build.extra_flags=${{ matrix.build-properties }}
0 commit comments