File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -77,13 +77,26 @@ if [ "$BUILD_PIO" -eq 0 ]; then
77
77
$ARDUINO_ESP32_PATH /libraries/ESP32/examples/Camera/CameraWebServer/CameraWebServer.ino\
78
78
$ARDUINO_ESP32_PATH /libraries/Insights/examples/MinimalDiagnostics/MinimalDiagnostics.ino\
79
79
"
80
+ # create sizes_file and echo start of JSON array with "boards" key
81
+ sizes_file=" $GITHUB_WORKSPACE /cli_compile_$CHUNK_INDEX .json"
82
+ echo " {\" boards\" : [" > $sizes_file
80
83
84
+ # build sketches for different targets
81
85
build " esp32s3" $FQBN_ESP32S3 $CHUNK_INDEX $CHUNKS_CNT $SKETCHES_ESP32
82
86
build " esp32s2" $FQBN_ESP32S2 $CHUNK_INDEX $CHUNKS_CNT $SKETCHES_ESP32
83
87
build " esp32c3" $FQBN_ESP32C3 $CHUNK_INDEX $CHUNKS_CNT $SKETCHES_ESP32
84
88
build " esp32c6" $FQBN_ESP32C6 $CHUNK_INDEX $CHUNKS_CNT $SKETCHES_ESP32
85
89
build " esp32h2" $FQBN_ESP32H2 $CHUNK_INDEX $CHUNKS_CNT $SKETCHES_ESP32
86
90
build " esp32" $FQBN_ESP32 $CHUNK_INDEX $CHUNKS_CNT $SKETCHES_ESP32
91
+
92
+
93
+ echo " Debug(board) - removing last comma from the last JSON object"
94
+
95
+ # remove last comma from the last JSON object
96
+ sed -i ' $ s/.$//' " $sizes_file "
97
+ # echo end of JSON array
98
+ echo " ]}" >> $sizes_file
99
+
87
100
else
88
101
source ${SCRIPTS_DIR} /install-platformio-esp32.sh
89
102
# PlatformIO ESP32 Test
You can’t perform that action at this time.
0 commit comments