Skip to content

Commit eeb9335

Browse files
committed
fix(ci): Log default FQBN if not passed
1 parent e70f4d3 commit eeb9335

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: .github/scripts/sketch_utils.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -416,10 +416,15 @@ function build_sketches(){ # build_sketches <ide_path> <user_path> <target> <pat
416416
echo "Start Sketch: $start_num"
417417
echo "End Sketch : $end_index"
418418

419+
#if fqbn is not passed then set it to default for compilation log
420+
if [ -z $fqbn ]; then
421+
log_fqbn="espressif:esp32:$target"
422+
fi
423+
419424
sizes_file="$GITHUB_WORKSPACE/cli_compile_$chunk_index.json"
420425
if [ $log_compilation ]; then
421426
#echo board,target and start of sketches to sizes_file json
422-
echo "{ \"board\": \"$fqbn\",
427+
echo "{ \"board\": \"$log_fqbn\",
423428
\"target\": \"$target\",
424429
\"sketches\": [" >> "$sizes_file"
425430
fi

0 commit comments

Comments
 (0)