Merge pull request #34 from simplefoc/dev #141
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: Library Compile | |
on: [push, pull_request] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: arduino/arduino-lint-action@v1 | |
with: | |
library-manager: update | |
project-type: library | |
build: | |
name: Test compile | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
arduino-boards-fqbn: | |
- arduino:avr:uno # arudino uno | |
- arduino:sam:arduino_due_x # arduino due | |
- arduino:samd:nano_33_iot # samd21 | |
- adafruit:samd:adafruit_metro_m4 # samd51 | |
- esp32:esp32:esp32 # esp32 | |
- esp32:esp32:esp32s2 # esp32s2 | |
- STMicroelectronics:stm32:GenF1:pnum=BLUEPILL_F103C8 # stm32 bluepill | |
- STMicroelectronics:stm32:Nucleo_64:pnum=NUCLEO_F411RE # stm32 nucleo | |
- arduino:mbed_rp2040:pico # rpi pico | |
include: | |
- arduino-boards-fqbn: arduino:avr:uno | |
sketches-exclude: calibrated mt6816_spi smoothing | |
required-libraries: Simple FOC | |
- arduino-boards-fqbn: arduino:sam:arduino_due_x | |
required-libraries: Simple FOC | |
sketches-exclude: calibrated smoothing | |
- arduino-boards-fqbn: arduino:samd:nano_33_iot | |
required-libraries: Simple FOC | |
sketches-exclude: calibrated smoothing | |
- arduino-boards-fqbn: arduino:mbed_rp2040:pico | |
required-libraries: Simple FOC | |
sketches-exclude: calibrated smoothing | |
- arduino-boards-fqbn: adafruit:samd:adafruit_metro_m4 | |
platform-url: https://adafruit.github.io/arduino-board-index/package_adafruit_index.json | |
required-libraries: Simple FOC | |
sketches-exclude: calibrated smoothing | |
# - arduino-boards-fqbn: esp32:esp32:esp32doit-devkit-v1 | |
# platform-url: https://dl.espressif.com/dl/package_esp32_index.json | |
# required-libraries: Simple FOC | |
# sketch-names: '**.ino' | |
- arduino-boards-fqbn: esp32:esp32:esp32 # esp32 | |
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json | |
required-libraries: Simple FOC | |
sketches-exclude: calibrated smoothing | |
- arduino-boards-fqbn: esp32:esp32:esp32s2 # esp32s2 | |
platform-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json | |
required-libraries: Simple FOC | |
sketches-exclude: calibrated smoothing | |
- arduino-boards-fqbn: STMicroelectronics:stm32:GenF1:pnum=BLUEPILL_F103C8 | |
platform-url: https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json | |
required-libraries: Simple FOC | |
sketches-exclude: calibrated mt6816_spi smoothing | |
- arduino-boards-fqbn: STMicroelectronics:stm32:Nucleo_64:pnum=NUCLEO_F411RE | |
platform-url: https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json | |
required-libraries: Simple FOC | |
sketches-exclude: smoothing | |
# Do not cancel all jobs / architectures if one job fails | |
fail-fast: false | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Compile all examples | |
uses: ArminJo/arduino-test-compile@master | |
with: | |
arduino-board-fqbn: ${{ matrix.arduino-boards-fqbn }} | |
required-libraries: ${{ matrix.required-libraries }} | |
platform-url: ${{ matrix.platform-url }} | |
sketch-names: ${{ matrix.sketch-names }} | |
sketches-exclude: ${{ matrix.sketches-exclude }} |