|
| 1 | +name: ArduinoBuild |
| 2 | + |
| 3 | +env: |
| 4 | + SKETCH_NAME: build_test.ino |
| 5 | + |
| 6 | +on: |
| 7 | + push: # see: https://help.github.com/en/actions/reference/events-that-trigger-workflows#pull-request-event-pull_request |
| 8 | + paths: |
| 9 | + - '**.ino' |
| 10 | + - '**.cpp' |
| 11 | + - '**.hpp' |
| 12 | + - '**.h' |
| 13 | + - '**.c' |
| 14 | + - '**ArduinoBuild.yml' |
| 15 | + pull_request: |
| 16 | + |
| 17 | +jobs: |
| 18 | + build: |
| 19 | + name: ${{ matrix.fancy-name }} |
| 20 | + |
| 21 | + runs-on: ubuntu-latest |
| 22 | + |
| 23 | + strategy: |
| 24 | + matrix: |
| 25 | + |
| 26 | + arduino-boards-fqbn: |
| 27 | + - Seeeduino:samd:seeed_wio_terminal |
| 28 | + - esp8266:esp8266:d1_mini:eesz=4M3M,xtal=80 |
| 29 | + - esp32:esp32:esp32 |
| 30 | + - esp32:esp32:esp32s2 |
| 31 | + - esp32:esp32:m5stick-c |
| 32 | + - esp32:esp32:m5stack-core-esp32 |
| 33 | + - esp32:esp32:m5stack-core2 |
| 34 | + #- esp32:esp32:m5stack-fire |
| 35 | + #- esp32:esp32:odroid_esp32 |
| 36 | + |
| 37 | + include: |
| 38 | + - arduino-boards-fqbn: Seeeduino:samd:seeed_wio_terminal |
| 39 | + fancy-name: Wio Terminal |
| 40 | + platform-url: https://files.seeedstudio.com/arduino/package_seeeduino_boards_index.json |
| 41 | + |
| 42 | + - arduino-boards-fqbn: esp8266:esp8266:d1_mini:eesz=4M3M,xtal=80 |
| 43 | + fancy-name: ESP8266 D1Mini |
| 44 | + platform-url: https://arduino.esp8266.com/stable/package_esp8266com_index.json |
| 45 | + |
| 46 | + - arduino-boards-fqbn: esp32:esp32:esp32 |
| 47 | + fancy-name: ESP32 Generic |
| 48 | + platform-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json |
| 49 | + |
| 50 | + - arduino-boards-fqbn: esp32:esp32:esp32s2 |
| 51 | + fancy-name: ESP32 S2 |
| 52 | + platform-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json |
| 53 | + |
| 54 | + - arduino-boards-fqbn: esp32:esp32:m5stick-c |
| 55 | + fancy-name: M5StickC |
| 56 | + platform-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json |
| 57 | + |
| 58 | + - arduino-boards-fqbn: esp32:esp32:m5stack-core-esp32 |
| 59 | + fancy-name: M5Stack |
| 60 | + platform-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json |
| 61 | + |
| 62 | + - arduino-boards-fqbn: esp32:esp32:m5stack-core2 |
| 63 | + fancy-name: M5Core2 |
| 64 | + platform-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json |
| 65 | + |
| 66 | + #- arduino-boards-fqbn: esp32:esp32:m5stack-fire |
| 67 | + # fancy-name: M5Fire |
| 68 | + # platform-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json |
| 69 | + |
| 70 | + #- arduino-boards-fqbn: esp32:esp32:odroid_esp32 |
| 71 | + # fancy-name: OdroidGo |
| 72 | + # platform-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json |
| 73 | + |
| 74 | + fail-fast: false |
| 75 | + |
| 76 | + steps: |
| 77 | + - name: Checkout |
| 78 | + uses: actions/checkout@v2 |
| 79 | + with: |
| 80 | + ref: ${{ github.event.pull_request.head.sha }} |
| 81 | + |
| 82 | + - name: Compile example |
| 83 | + uses: ArminJo/arduino-test-compile@v3 |
| 84 | + with: |
| 85 | + arduino-board-fqbn: ${{ matrix.arduino-boards-fqbn }} |
| 86 | + platform-url: ${{ matrix.platform-url }} |
| 87 | + required-libraries: ${{ matrix.required-libraries }} |
| 88 | + build-properties: ${{ toJson(matrix.build-properties) }} |
| 89 | + sketch-names: ${{ env.SKETCH_NAME }} |
| 90 | + #platform-default-url: ${{ env.PLATFORM_DEFAULT_URL }} |
| 91 | + #sketches-exclude: ${{ matrix.sketches-exclude }} |
| 92 | + |
0 commit comments