|
| 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 | + - UnitColor |
| 64 | + |
| 65 | + board: |
| 66 | + - m5stack_atom |
| 67 | + - m5stack_atoms3 |
| 68 | + - m5stack_atoms3r |
| 69 | + - m5stack_capsule |
| 70 | +# - m5stack_cardputer |
| 71 | + - m5stack_core |
| 72 | + - m5stack_core2 |
| 73 | + - m5stack_coreink |
| 74 | + - m5stack_cores3 |
| 75 | + - m5stack_dial |
| 76 | + - m5stack_dinmeter |
| 77 | + - m5stack_fire |
| 78 | + - m5stack_paper |
| 79 | +# - m5stack_poe_cam |
| 80 | +# - m5stack_stamp_c3 |
| 81 | +# - m5stack_stamp_pico |
| 82 | + - m5stack_stamp_s3 |
| 83 | +# - m5stack_station |
| 84 | +# - m5stack_stickc |
| 85 | + - m5stack_stickc_plus |
| 86 | + - m5stack_stickc_plus2 |
| 87 | +# - m5stack_timer_cam |
| 88 | +# - m5stack_tough |
| 89 | +# - m5stack_unit_cam |
| 90 | +# - m5stack_unit_cams3 |
| 91 | + |
| 92 | + platform-version: |
| 93 | + - 2.1.2 |
| 94 | + |
| 95 | + platform: |
| 96 | + - m5stack |
| 97 | + |
| 98 | + archi: |
| 99 | + - esp32 |
| 100 | + |
| 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 | + |
0 commit comments