Skip to content

Commit

Permalink
Fix OpenMRNLite includes for test builds (#723)
Browse files Browse the repository at this point in the history
Fixes build actions by adding OpenMRNLite as required library.
  • Loading branch information
atanisoft authored Aug 2, 2023
1 parent b5f378b commit 49b306f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ArduinoBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Generate OpenMRNLite library
run: |
mkdir --parents $HOME/Arduino/libraries/OpenMRNLite
$GITHUB_WORKSPACE/arduino/libify.sh $HOME/Arduino/libraries/OpenMRNLite $GITHUB_WORKSPACE -f -l
$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
Expand All @@ -37,6 +37,7 @@ jobs:
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
Expand All @@ -52,7 +53,7 @@ jobs:
- name: Generate OpenMRNLite library
run: |
mkdir --parents $HOME/Arduino/libraries/OpenMRNLite
$GITHUB_WORKSPACE/arduino/libify.sh $HOME/Arduino/libraries/OpenMRNLite $GITHUB_WORKSPACE -f -l
$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
Expand All @@ -62,6 +63,7 @@ jobs:
arduino-board-fqbn: esp32:esp32:node32s
sketch-names: ESP32CanLoadTest.ino,ESP32IOBoard.ino,ESP32SerialBridge.ino,ESP32WifiCanBridge.ino
debug-compile: true
required-libraries: OpenMRNLite
if: ${{ matrix.target == 'esp32' }}

- name: Compile ESP32-C3 examples
Expand All @@ -71,6 +73,7 @@ jobs:
arduino-board-fqbn: esp32:esp32:esp32c3
sketch-names: ESP32C3CanLoadTest.ino,ESP32C3IOBoard.ino
debug-compile: true
required-libraries: OpenMRNLite
if: ${{ matrix.target == 'esp32c3' }}

- name: Compile ESP32-S2 examples
Expand All @@ -80,4 +83,5 @@ jobs:
arduino-board-fqbn: esp32:esp32:esp32s2
sketch-names: ESP32S2CanLoadTest.ino,ESP32S2IOBoard.ino
debug-compile: true
if: ${{ matrix.target == 'esp32s2' }}
required-libraries: OpenMRNLite
if: ${{ matrix.target == 'esp32s2' }}

0 comments on commit 49b306f

Please sign in to comment.