File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,10 @@ function build_sketch(){ # build_sketch <ide_path> <user_path> <path-to-ino> [ex
27
27
shift
28
28
sketchdir=$1
29
29
;;
30
+ -i )
31
+ shift
32
+ chunk_index=$1
33
+ ;;
30
34
* )
31
35
break
32
36
;;
@@ -140,10 +144,10 @@ function build_sketch(){ # build_sketch <ide_path> <user_path> <path-to-ino> [ex
140
144
build_dir=" $HOME /.arduino/tests/$sketchname /build.tmp"
141
145
fi
142
146
143
- echo " Chunk index = $CHUNK_INDEX "
147
+ echo " Chunk index = $chunk_index "
144
148
145
149
log_file=" $HOME /.arduino/cli_compile_output.txt"
146
- sizes_file=" $GITHUB_WORKSPACE /cli_compile_$CHUNK_INDEX .json"
150
+ sizes_file=" $GITHUB_WORKSPACE /cli_compile_$chunk_index .json"
147
151
148
152
echo " Sizes file = $sizes_file "
149
153
@@ -391,7 +395,7 @@ function build_sketches(){ # build_sketches <ide_path> <user_path> <target> <pat
391
395
echo " End Sketch : $end_index "
392
396
393
397
local sketchnum=0
394
- args+=" -ai $ide_path -au $user_path "
398
+ args+=" -ai $ide_path -au $user_path -i $chunk_index "
395
399
for sketch in $sketches ; do
396
400
local sketchdir=$( dirname $sketch )
397
401
local sketchdirname=$( basename $sketchdir )
You can’t perform that action at this time.
0 commit comments