Skip to content

Commit 992ef47

Browse files
committed
Fix arduino-cli CI build on Windows
1 parent 262636e commit 992ef47

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/scripts/on-push.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ function build(){
2525
${BUILD_SKETCHES} ${args}
2626
else
2727
for sketch in ${sketches}; do
28-
args+=" -s $(dirname $sketch)"
29-
if [ "$OS_IS_WINDOWS" == "1" ]; then
28+
local sargs="$args -s $(dirname $sketch)"
29+
if [ "$OS_IS_WINDOWS" == "1" ] && [ -d "$ARDUINO_IDE_PATH/tools-builder" ]; then
3030
local ctags_version=`ls "$ARDUINO_IDE_PATH/tools-builder/ctags/"`
3131
local preprocessor_version=`ls "$ARDUINO_IDE_PATH/tools-builder/arduino-preprocessor/"`
3232
win_opts="-prefs=runtime.tools.ctags.path=$ARDUINO_IDE_PATH/tools-builder/ctags/$ctags_version
3333
-prefs=runtime.tools.arduino-preprocessor.path=$ARDUINO_IDE_PATH/tools-builder/arduino-preprocessor/$preprocessor_version"
34-
args+=" ${win_opts}"
34+
sargs+=" ${win_opts}"
3535
fi
36-
${BUILD_SKETCH} ${args}
36+
${BUILD_SKETCH} ${sargs}
3737
done
3838
fi
3939
}

0 commit comments

Comments
 (0)