From 0afc91c98fb2e7f12765f9d13e7904e268a8cc2f Mon Sep 17 00:00:00 2001 From: RobertoHE Date: Mon, 28 Nov 2022 16:58:54 +0100 Subject: [PATCH] Update build-arduino.sh --- ci/build-arduino.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ci/build-arduino.sh b/ci/build-arduino.sh index 507c86b..ba4ea20 100644 --- a/ci/build-arduino.sh +++ b/ci/build-arduino.sh @@ -49,9 +49,13 @@ arduino-cli lib install NimBLE-Arduino # arduino-cli compile -b arduino:esp8266:??? $f # done +dR = $(pwd) + # Compile all *.ino files for the Arduino Uno for f in **/*.ino ; do - echo "Project $f" + echo "Project: $f" + d =$(dirname $f) + cd $d arduino-cli compile -b esp32:esp32:esp32 $f - arduino-cli compile --clean + cd $dR done