arduino_default SPI and I2C enhancements #742
Workflow file for this run
This file contains 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' | |
- '**ArduinoBuild.yml' | |
pull_request: | |
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 | |
- esp32 | |
- esp32s2 | |
- m5stick-c | |
- m5stack-core-esp32 | |
- m5stack-core2 | |
- esp32s3box | |
platform-version: | |
# ESP32 Core versions for 3D matrix | |
#- 1.0.6 | |
#- 2.0.0 | |
#- 2.0.1 | |
#- 2.0.2 | |
#- 2.0.3 | |
#- 2.0.4 | |
- 2.0.11 | |
- 2.0.12 | |
- 2.0.13 | |
include: | |
# 3D matrix doesn't apply to these: | |
- { board: 'd1_mini:eesz=4M3M,xtal=80', platform: esp8266, archi: esp8266, platform-version: 3.0.1, 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: adafruit_hallowing_m4, platform: adafruit, archi: samd, platform-version: 1.7.10, platform-url: 'https://adafruit.github.io/arduino-board-index/package_adafruit_index.json', ... } | |
- { board: adafruit_pybadge_m4, platform: adafruit, archi: samd, platform-version: 1.7.10, platform-url: 'https://adafruit.github.io/arduino-board-index/package_adafruit_index.json', ... } | |
- { board: adafruit_pygamer_m4, platform: adafruit, archi: samd, platform-version: 1.7.10, platform-url: 'https://adafruit.github.io/arduino-board-index/package_adafruit_index.json', ... } | |
- { board: adafruit_feather_esp32s2_tft, platform: esp32, archi: esp32, platform-version: latest, platform-url: 'https://espressif.github.io/arduino-esp32/package_esp32_index.json', ... } | |
- { board: adafruit_feather_esp32s3_tft, platform: esp32, archi: esp32, platform-version: latest, platform-url: 'https://espressif.github.io/arduino-esp32/package_esp32_index.json', ... } | |
- { board: adafruit_funhouse_esp32s2, platform: esp32, archi: esp32, platform-version: latest, platform-url: 'https://espressif.github.io/arduino-esp32/package_esp32_index.json', ... } | |
- { board: rpipico, platform: rp2040, archi: rp2040, platform-version: 2.3.3, 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', ... } | |
# 3D matrix applies to these: | |
- { board: esp32, platform: esp32, archi: esp32, ... } | |
- { board: esp32s2, platform: esp32, archi: esp32, ... } | |
- { board: m5stick-c, platform: esp32, archi: esp32, ... } | |
- { board: m5stack-core-esp32, platform: esp32, archi: esp32, ... } | |
- { board: m5stack-core2, platform: esp32, archi: esp32, ... } | |
- { board: esp32s3box, platform: esp32, archi: esp32, ... } | |
fail-fast: false | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
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 }} | |