Merge branch 'master' into bakerstu-ble-basics #596
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
# ArduinoBuild.yml | |
# | |
# Github workflow script that compiles all examples from the OpenMRNLite | |
# Arduino library. | |
# | |
# Copyright (C) 2021 Balazs Racz | |
# | |
# Name of workflow | |
name: ArduinoBuild | |
on: | |
push: | |
paths: | |
- '**.ino' | |
- '**rduino**' | |
- '**ArduinoBuild.yml' | |
pull_request: | |
jobs: | |
build-stm32: | |
name: Build Arduino STM32 examples | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Generate OpenMRNLite library | |
run: | | |
mkdir --parents $HOME/Arduino/libraries/OpenMRNLite | |
$GITHUB_WORKSPACE/arduino/libify.sh $HOME/Arduino/libraries/OpenMRNLite $GITHUB_WORKSPACE -f | |
rm -f $GITHUB_WORKSPACE/arduino/examples/Stm*/build_opt.h | |
- name: Compile STM32 examples | |
uses: ArminJo/arduino-test-compile@v3 | |
with: | |
platform-url: https://raw.githubusercontent.com/stm32duino/BoardManagerFiles/master/STM32/package_stm_index.json | |
arduino-board-fqbn: STM32:stm32:Nucleo_144:pnum=NUCLEO_F767ZI,upload_method=MassStorage,xserial=generic,usb=CDCgen,xusb=FS,opt=osstd,rtlib=nano | |
sketch-names: Stm32*.ino | |
build-properties: '{ "All": "-DHAL_CAN_MODULE_ENABLED" }' | |
debug-compile: true | |
required-libraries: OpenMRNLite | |
build-esp32: | |
name: Build Arduino ${{ matrix.target }} examples | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 2 | |
matrix: | |
target: [esp32, esp32c3, esp32s2] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Generate OpenMRNLite library | |
run: | | |
mkdir --parents $HOME/Arduino/libraries/OpenMRNLite | |
$GITHUB_WORKSPACE/arduino/libify.sh $HOME/Arduino/libraries/OpenMRNLite $GITHUB_WORKSPACE -f | |
rm -f $GITHUB_WORKSPACE/arduino/examples/Stm*/build_opt.h | |
- name: Compile ESP32 examples | |
uses: ArminJo/arduino-test-compile@v3 | |
with: | |
platform-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json | |
arduino-board-fqbn: esp32:esp32:node32s | |
sketch-names: ESP32CanLoadTest.ino,ESP32IOBoard.ino,ESP32SerialBridge.ino,ESP32WifiCanBridge.ino | |
debug-compile: true | |
required-libraries: OpenMRNLite | |
arduino-platform: esp32:[email protected] | |
if: ${{ matrix.target == 'esp32' }} | |
- name: Compile ESP32-C3 examples | |
uses: ArminJo/arduino-test-compile@v3 | |
with: | |
platform-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json | |
arduino-board-fqbn: esp32:esp32:esp32c3 | |
sketch-names: ESP32C3CanLoadTest.ino,ESP32C3IOBoard.ino | |
debug-compile: true | |
required-libraries: OpenMRNLite | |
arduino-platform: esp32:[email protected] | |
if: ${{ matrix.target == 'esp32c3' }} | |
- name: Compile ESP32-S2 examples | |
uses: ArminJo/arduino-test-compile@v3 | |
with: | |
platform-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json | |
arduino-board-fqbn: esp32:esp32:esp32s2 | |
sketch-names: ESP32S2CanLoadTest.ino,ESP32S2IOBoard.ino | |
debug-compile: true | |
required-libraries: OpenMRNLite | |
arduino-platform: esp32:[email protected] | |
if: ${{ matrix.target == 'esp32s2' }} |