Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Commit 829b6ef

Browse files
committed
build fixes
1 parent 4eb4064 commit 829b6ef

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

.github/scripts/install-arduino-ide.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,13 @@ function build_sketch(){ # build_sketch <fqbn> <path-to-ino> [extra-options]
110110
function count_sketches() # count_sketches <examples-path>
111111
{
112112
local examples="$1"
113+
rm -rf sketches.txt
114+
if [ ! -d "$examples" ]; then
115+
touch sketches.txt
116+
return 0
117+
fi
113118
local sketches=$(find $examples -name *.ino)
114119
local sketchnum=0
115-
rm -rf sketches.txt
116120
for sketch in $sketches; do
117121
local sketchdir=$(dirname $sketch)
118122
local sketchdirname=$(basename $sketchdir)

.github/scripts/install-platformio.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,14 @@ function build_pio_sketch(){ # build_pio_sketch <board> <path-to-ino>
2727

2828
function count_sketches() # count_sketches <examples-path>
2929
{
30-
local examples="$1"
30+
local examples="$1"
31+
rm -rf sketches.txt
32+
if [ ! -d "$examples" ]; then
33+
touch sketches.txt
34+
return 0
35+
fi
3136
local sketches=$(find $examples -name *.ino)
3237
local sketchnum=0
33-
rm -rf sketches.txt
3438
for sketch in $sketches; do
3539
local sketchdir=$(dirname $sketch)
3640
local sketchdirname=$(basename $sketchdir)

.github/scripts/on-push.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ if [ "$BUILD_PIO" -eq 0 ]; then
3232

3333
FQBN="esp8266com:esp8266:generic:eesz=4M1M,ip=lm2f"
3434
build_sketches "$FQBN" "$GITHUB_WORKSPACE/examples"
35-
if [ -x "$OS_IS_WINDOWS" ]; then
35+
if [ ! "$OS_IS_WINDOWS" == "1" ]; then
3636
echo "Installing ESPAsyncWebServer ..."
3737
git clone https://github.com/me-no-dev/ESPAsyncWebServer "$ARDUINO_USR_PATH/libraries/ESPAsyncWebServer" > /dev/null 2>&1
3838

0 commit comments

Comments
 (0)