From 6a417ca64b80f0519600a52d3c3c860c2cae6542 Mon Sep 17 00:00:00 2001 From: Antoine Beauchamp Date: Wed, 7 Aug 2024 17:10:27 -0400 Subject: [PATCH] Updated script `arduino_build_sketch.*` to also build for esp32wroverkit (as specifically mentionned in #6). --- ci/linux/arduino_build_sketch.sh | 8 ++++++++ ci/windows/arduino_build_sketch.bat | 9 +++++++++ 2 files changed, 17 insertions(+) diff --git a/ci/linux/arduino_build_sketch.sh b/ci/linux/arduino_build_sketch.sh index 36233bf..63b8a9e 100755 --- a/ci/linux/arduino_build_sketch.sh +++ b/ci/linux/arduino_build_sketch.sh @@ -45,4 +45,12 @@ arduino-cli compile --fqbn "esp32:esp32:esp32" "$1.ino" echo echo +echo ========================================================================================================== +echo Compiling $ARDUINO_INO_FILE \(esp32wroverkit\) +echo ========================================================================================================== +cd $PRODUCT_SOURCE_DIR/examples/$1 +arduino-cli compile --fqbn "esp32:esp32:esp32wroverkit" "$1.ino" +echo +echo + cd "$(dirname "$0")" diff --git a/ci/windows/arduino_build_sketch.bat b/ci/windows/arduino_build_sketch.bat index f1feb4f..f6c521b 100644 --- a/ci/windows/arduino_build_sketch.bat +++ b/ci/windows/arduino_build_sketch.bat @@ -50,4 +50,13 @@ if %errorlevel% neq 0 exit /b %errorlevel% echo. echo. +echo ========================================================================================================== +echo Compiling %ARDUINO_INO_FILE% (esp32wroverkit) +echo ========================================================================================================== +cd /d "%PRODUCT_SOURCE_DIR%\examples\%~1" +arduino-cli compile --fqbn "esp32:esp32:esp32wroverkit" %~1.ino +if %errorlevel% neq 0 exit /b %errorlevel% +echo. +echo. + cd /d "%~dp0"