Merge pull request #896 from ainyan03/release_1_2_27 #1157
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ArduinoBuild | |
| env: | |
| SKETCH_NAME: build_test.ino | |
| on: | |
| push: # see: https://help.github.com/en/actions/reference/events-that-trigger-workflows#pull-request-event-pull_request | |
| paths: | |
| - '**.ino' | |
| - '**.cpp' | |
| - '**.hpp' | |
| - '**.h' | |
| - '**.c' | |
| - '**library.properties' | |
| - '**ArduinoBuild.yml' | |
| pull_request: | |
| paths: | |
| - '**.ino' | |
| - '**.cpp' | |
| - '**.hpp' | |
| - '**.h' | |
| - '**.c' | |
| - '**library.properties' | |
| - '**ArduinoBuild.yml' | |
| workflow_dispatch: | |
| # supersede queued/running builds of the same branch or PR | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: ${{matrix.board}}@${{matrix.platform-version}} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| platform-url: | |
| - https://espressif.github.io/arduino-esp32/package_esp32_index.json | |
| board: | |
| # ESP32 devices for 3D matrix (used with core versions 2.x) | |
| - esp32 | |
| - esp32s2 | |
| - m5stick-c | |
| - m5stack-core-esp32 | |
| - m5stack-core2 | |
| - esp32s3box | |
| platform-version: | |
| # ESP32 Core versions 2.x for 3D matrix | |
| # - 2.0.15 | |
| # - 2.0.16 | |
| - 2.0.17 | |
| #- 3.0.0 | |
| include: | |
| # 3D matrix doesn't apply to these: | |
| - { board: 'd1_mini:eesz=4M3M,xtal=80', platform: esp8266, archi: esp8266, platform-version: latest, platform-url: 'https://arduino.esp8266.com/stable/package_esp8266com_index.json', ... } | |
| - { board: 'd1_mini:eesz=4M3M,xtal=80', platform: esp8266, archi: esp8266, platform-version: 3.0.2, platform-url: 'https://arduino.esp8266.com/stable/package_esp8266com_index.json', ... } | |
| - { board: seeed_wio_terminal, platform: Seeeduino, archi: samd, platform-version: 1.8.2, platform-url: 'https://files.seeedstudio.com/arduino/package_seeeduino_boards_index.json', ... } | |
| - { board: adafruit_hallowing, platform: adafruit, archi: samd, platform-version: 1.7.10, platform-url: 'https://adafruit.github.io/arduino-board-index/package_adafruit_index.json', ... } | |
| - { board: rpipico, platform: rp2040, archi: rp2040, platform-version: latest, cli-args: '--build-property compiler.cpp.extra_flags=-DSKIP_I2C_TEST', platform-url: 'https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json', ... } | |
| - { board: teensy41, platform: teensy, archi: avr, platform-version: latest, cli-args: '--build-property compiler.cpp.extra_flags=-DSKIP_I2C_TEST', platform-url: 'https://www.pjrc.com/teensy/package_teensy_index.json', ... } | |
| - { board: teensy35, platform: teensy, archi: avr, platform-version: latest, cli-args: '--build-property compiler.cpp.extra_flags=-DSKIP_I2C_TEST', platform-url: 'https://www.pjrc.com/teensy/package_teensy_index.json', ... } | |
| - { board: esp32, platform: esp32, platform-version: latest, platform-url: 'https://espressif.github.io/arduino-esp32/package_esp32_index.json', archi: esp32, ... } | |
| - { board: esp32s2, platform: esp32, platform-version: latest, platform-url: 'https://espressif.github.io/arduino-esp32/package_esp32_index.json', archi: esp32, ... } | |
| - { board: esp32s3, platform: esp32, platform-version: latest, platform-url: 'https://espressif.github.io/arduino-esp32/package_esp32_index.json', archi: esp32, ... } | |
| # Note: esp32c2 disabled because it is missing the bootloader unless Arduino is used as an esp-idf component | |
| # - { board: esp32c2, platform: esp32, platform-version: latest, platform-url: 'https://espressif.github.io/arduino-esp32/package_esp32_index.json', archi: esp32, ... } | |
| - { board: esp32c3, platform: esp32, platform-version: latest, platform-url: 'https://espressif.github.io/arduino-esp32/package_esp32_index.json', archi: esp32, ... } | |
| - { board: esp32c5, platform: esp32, platform-version: latest, platform-url: 'https://espressif.github.io/arduino-esp32/package_esp32_index.json', archi: esp32, ... } | |
| - { board: esp32c6, platform: esp32, platform-version: latest, platform-url: 'https://espressif.github.io/arduino-esp32/package_esp32_index.json', archi: esp32, ... } | |
| - { board: esp32p4, platform: esp32, platform-version: latest, platform-url: 'https://espressif.github.io/arduino-esp32/package_esp32_index.json', archi: esp32, ... } | |
| - { board: esp32h2, platform: esp32, platform-version: latest, platform-url: 'https://espressif.github.io/arduino-esp32/package_esp32_index.json', archi: esp32, ... } | |
| # 3D matrix for Core versions 2.x applies to these: | |
| - { platform: esp32, archi: esp32, ... } | |
| fail-fast: false | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| - name: Compile example | |
| uses: ArminJo/arduino-test-compile@master | |
| with: | |
| arduino-board-fqbn: ${{matrix.platform}}:${{matrix.archi}}:${{matrix.board}} | |
| arduino-platform: ${{matrix.platform}}:${{matrix.archi}}@${{matrix.platform-version}} | |
| platform-url: ${{ matrix.platform-url }} | |
| required-libraries: ${{ matrix.required-libraries }} | |
| extra-arduino-cli-args: ${{ matrix.cli-args }} | |
| #build-properties: ${{ toJson(matrix.build-properties) }} | |
| sketch-names: ${{ env.SKETCH_NAME }} | |
| #sketches-exclude: ${{ matrix.sketches-exclude }} | |
| debug-compile: true | |