|
| 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 | + - 'examples/UnitUnified/**.ino' |
| 20 | + - 'examples/UnitUnified/**.cpp' |
| 21 | + - 'examples/UnitUnified/**.hpp' |
| 22 | + - 'examples/UnitUnified/**.h' |
| 23 | + - 'examples/UnitUnified/**.c' |
| 24 | + - '**arduino-m5-build-check.yml' |
| 25 | + pull_request: |
| 26 | + paths: |
| 27 | + - 'src/unit/**.cpp' |
| 28 | + - 'src/unit/**.hpp' |
| 29 | + - 'src/unit/**.h' |
| 30 | + - 'src/unit/**.c' |
| 31 | + - 'examples/UnitUnified/**.ino' |
| 32 | + - 'examples/UnitUnified/**.cpp' |
| 33 | + - 'examples/UnitUnified/**.hpp' |
| 34 | + - 'examples/UnitUnified/**.h' |
| 35 | + - 'examples/UnitUnified/**.c' |
| 36 | + - '**arduino-m5-build-check.yml' |
| 37 | + workflow_dispatch: |
| 38 | + |
| 39 | +defaults: |
| 40 | + run: |
| 41 | + shell: bash |
| 42 | + |
| 43 | +concurrency: |
| 44 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 45 | + cancel-in-progress: true |
| 46 | + |
| 47 | +jobs: |
| 48 | + build: |
| 49 | + name: ${{ matrix.unit }}:${{matrix.nfc}}:${{ matrix.sketch }}:${{matrix.board}}@${{matrix.platform-version}}:${{matrix.build-properties}} |
| 50 | + runs-on: ubuntu-latest |
| 51 | + timeout-minutes: 12 |
| 52 | + |
| 53 | + strategy: |
| 54 | + fail-fast: false |
| 55 | + max-parallel: 1 |
| 56 | + |
| 57 | + matrix: |
| 58 | + platform-url: |
| 59 | + - https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json |
| 60 | + |
| 61 | + sketch: |
| 62 | + - Detect |
| 63 | + |
| 64 | + nfc: |
| 65 | + - NFCA |
| 66 | + - NFCB |
| 67 | + - NFCF |
| 68 | + - NFCV |
| 69 | + |
| 70 | + unit: |
| 71 | + - '' |
| 72 | + |
| 73 | + board: |
| 74 | + - m5stack_atom |
| 75 | + - m5stack_atoms3 |
| 76 | + - m5stack_atoms3r |
| 77 | + - m5stack_capsule |
| 78 | + - m5stack_cardputer |
| 79 | + - m5stack_core |
| 80 | + - m5stack_core2 |
| 81 | + - m5stack_coreink |
| 82 | + - m5stack_cores3 |
| 83 | + - m5stack_dial |
| 84 | + - m5stack_dinmeter |
| 85 | + - m5stack_fire |
| 86 | + - m5stack_paper |
| 87 | +# - m5stack_poe_cam |
| 88 | +# - m5stack_stamp_c3 |
| 89 | +# - m5stack_stamp_pico |
| 90 | + - m5stack_stamp_s3 |
| 91 | +# - m5stack_station |
| 92 | +# - m5stack_stickc |
| 93 | + - m5stack_stickc_plus |
| 94 | + - m5stack_stickc_plus2 |
| 95 | +# - m5stack_timer_cam |
| 96 | +# - m5stack_tough |
| 97 | +# - m5stack_unit_cam |
| 98 | +# - m5stack_unit_cams3 |
| 99 | + |
| 100 | + platform-version: |
| 101 | + - 3.2.5 |
| 102 | + |
| 103 | + platform: |
| 104 | + - m5stack |
| 105 | + |
| 106 | + archi: |
| 107 | + - esp32 |
| 108 | + |
| 109 | + build-properties: |
| 110 | + - "-DUSING_UNIT_NFC" |
| 111 | + |
| 112 | + include: |
| 113 | + # NFCA Specific sketches |
| 114 | + - sketch: Dump |
| 115 | + nfc: NFCA |
| 116 | + platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json |
| 117 | + platform-version: 3.2.5 |
| 118 | + platform: m5stack |
| 119 | + archi: esp32 |
| 120 | + board: m5stack_core |
| 121 | + build-properties: "-DUSING_UNIT_NFC" |
| 122 | + - sketch: ValueBlock |
| 123 | + nfc: NFCA |
| 124 | + platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json |
| 125 | + platform-version: 3.2.5 |
| 126 | + platform: m5stack |
| 127 | + archi: esp32 |
| 128 | + board: m5stack_core |
| 129 | + build-properties: "-DUSING_UNIT_NFC" |
| 130 | + - sketch: ReadWrite |
| 131 | + nfc: NFCA |
| 132 | + platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json |
| 133 | + platform-version: 3.2.5 |
| 134 | + platform: m5stack |
| 135 | + archi: esp32 |
| 136 | + board: m5stack_core |
| 137 | + build-properties: "-DUSING_UNIT_NFC" |
| 138 | + - sketch: NDEF |
| 139 | + nfc: NFCA |
| 140 | + platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json |
| 141 | + platform-version: 3.2.5 |
| 142 | + platform: m5stack |
| 143 | + archi: esp32 |
| 144 | + board: m5stack_core |
| 145 | + build-properties: "-DUSING_UNIT_NFC" |
| 146 | + - sketch: Emulation |
| 147 | + nfc: NFCA |
| 148 | + platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json |
| 149 | + platform-version: 3.2.5 |
| 150 | + platform: m5stack |
| 151 | + archi: esp32 |
| 152 | + board: m5stack_core |
| 153 | + build-properties: "-DUSING_UNIT_NFC" |
| 154 | + |
| 155 | + # NFCF Specific sketches |
| 156 | + - sketch: Dump |
| 157 | + nfc: NFCF |
| 158 | + platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json |
| 159 | + platform-version: 3.2.5 |
| 160 | + platform: m5stack |
| 161 | + archi: esp32 |
| 162 | + board: m5stack_core |
| 163 | + build-properties: "-DUSING_UNIT_NFC" |
| 164 | + - sketch: NDEF |
| 165 | + nfc: NFCF |
| 166 | + platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json |
| 167 | + platform-version: 3.2.5 |
| 168 | + platform: m5stack |
| 169 | + archi: esp32 |
| 170 | + board: m5stack_core |
| 171 | + build-properties: "-DUSING_UNIT_NFC" |
| 172 | + - sketch: Subtract |
| 173 | + nfc: NFCF |
| 174 | + platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json |
| 175 | + platform-version: 3.2.5 |
| 176 | + platform: m5stack |
| 177 | + archi: esp32 |
| 178 | + board: m5stack_core |
| 179 | + build-properties: "-DUSING_UNIT_NFC" |
| 180 | + - sketch: ReadWriteMAC |
| 181 | + nfc: NFCF |
| 182 | + platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json |
| 183 | + platform-version: 3.2.5 |
| 184 | + platform: m5stack |
| 185 | + archi: esp32 |
| 186 | + board: m5stack_core |
| 187 | + build-properties: "-DUSING_UNIT_NFC" |
| 188 | + - sketch: JapanTransportationICCard |
| 189 | + nfc: NFCF |
| 190 | + platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json |
| 191 | + platform-version: 3.2.5 |
| 192 | + platform: m5stack |
| 193 | + archi: esp32 |
| 194 | + board: m5stack_core |
| 195 | + build-properties: "-DUSING_UNIT_NFC" |
| 196 | + - sketch: Emulation |
| 197 | + nfc: NFCF |
| 198 | + platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json |
| 199 | + platform-version: 3.2.5 |
| 200 | + platform: m5stack |
| 201 | + archi: esp32 |
| 202 | + board: m5stack_core |
| 203 | + build-properties: "-DUSING_UNIT_NFC" |
| 204 | + |
| 205 | + # NFCV Specific sketches |
| 206 | + - sketch: Dump |
| 207 | + nfc: NFCV |
| 208 | + platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json |
| 209 | + platform-version: 3.2.5 |
| 210 | + platform: m5stack |
| 211 | + archi: esp32 |
| 212 | + board: m5stack_core |
| 213 | + build-properties: "-DUSING_UNIT_NFC" |
| 214 | + - sketch: NDEF |
| 215 | + nfc: NFCV |
| 216 | + platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json |
| 217 | + platform-version: 3.2.5 |
| 218 | + platform: m5stack |
| 219 | + archi: esp32 |
| 220 | + board: m5stack_core |
| 221 | + build-properties: "-DUSING_UNIT_NFC" |
| 222 | + |
| 223 | + # Cardputer ADV with HACKER_CAP |
| 224 | + - board: m5stack_cardputer |
| 225 | + nfc: NFCA |
| 226 | + sketch: Detect |
| 227 | + platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json |
| 228 | + platform-version: 3.2.5 |
| 229 | + platform: m5stack |
| 230 | + archi: esp32 |
| 231 | + build-properties: "-DUSING_HACKER_CAP" |
| 232 | + - board: m5stack_cardputer |
| 233 | + nfc: NFCB |
| 234 | + sketch: Detect |
| 235 | + platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json |
| 236 | + platform-version: 3.2.5 |
| 237 | + platform: m5stack |
| 238 | + archi: esp32 |
| 239 | + build-properties: "-DUSING_HACKER_CAP" |
| 240 | + - board: m5stack_cardputer |
| 241 | + nfc: NFCF |
| 242 | + sketch: Detect |
| 243 | + platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json |
| 244 | + platform-version: 3.2.5 |
| 245 | + platform: m5stack |
| 246 | + archi: esp32 |
| 247 | + build-properties: "-DUSING_HACKER_CAP" |
| 248 | + - board: m5stack_cardputer |
| 249 | + nfc: NFCV |
| 250 | + sketch: Detect |
| 251 | + platform-url: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json |
| 252 | + platform-version: 3.2.5 |
| 253 | + platform: m5stack |
| 254 | + archi: esp32 |
| 255 | + build-properties: "-DUSING_HACKER_CAP" |
| 256 | + |
| 257 | + |
| 258 | + steps: |
| 259 | + - name: Install dependencies (act only) |
| 260 | + if: ${{ env.ACT }} |
| 261 | + run: apt-get update && apt-get install -y python3-serial |
| 262 | + |
| 263 | + - name: Checkout |
| 264 | + uses: actions/checkout@v4 |
| 265 | + |
| 266 | + # Build |
| 267 | + - name: Compile examples |
| 268 | + uses: ArminJo/arduino-test-compile@master |
| 269 | + with: |
| 270 | + arduino-board-fqbn: ${{ matrix.platform }}:${{ matrix.archi }}:${{ matrix.board }} |
| 271 | + arduino-platform: ${{ matrix.platform }}:${{ matrix.archi }}@${{ matrix.platform-version }} |
| 272 | + platform-url: ${{ matrix.platform-url }} |
| 273 | + required-libraries: ${{ env.REQUIRED_LIBRARIES }} |
| 274 | + extra-arduino-cli-args: ${{ matrix.cli-args }} |
| 275 | + build-properties: ${{ matrix.build-properties }} |
| 276 | + sketch-names: ${{ matrix.sketch }}.ino |
| 277 | + sketch-names-find-start: ${{ env.SKETCH_NAMES_FIND_START }}/${{matrix.nfc}}/ |
| 278 | + #sketches-exclude: ${{ matrix.sketches-exclude }} |
| 279 | + |
0 commit comments