@@ -62,10 +62,12 @@ jobs:
62
62
mfqbn=$(cat ./fqbn.yml | shyaml get-values fqbn | awk '{printf " --fqbn=%s", $0}')
63
63
echo "fqbn_example=$mfqbn" >> $GITHUB_OUTPUT
64
64
65
- eexmp=`cat ./fqbn.yml | shyaml get-value hil.example`
66
- efqbn=`cat ./fqbn.yml | shyaml get-value hil.fqbn`
67
- echo "matrix_hil=$eexmp" >> $GITHUB_OUTPUT
68
- echo "fqbn_hil=$efqbn" >> $GITHUB_OUTPUT
65
+ ep=`cat ./fqbn.yml | shyaml get-value hil.example`
66
+ export exp=$(jq --compact-output --null-input '$ARGS.positional' --args -- "${ep}")
67
+ echo "matrix_hil=$exp" >> $GITHUB_OUTPUT
68
+ fq=`cat ./fqbn.yml | shyaml get-value hil.fqbn`
69
+ export fqb=$(jq --compact-output --null-input '$ARGS.positional' --args -- "${fq}")
70
+ echo "fqbn_hil=$fqb" >> $GITHUB_OUTPUT
69
71
70
72
cd /opt/runner_support/
71
73
python py_checkusb.py --switch repo --namelist $REPO --onoff on
@@ -257,7 +259,7 @@ jobs:
257
259
258
260
# the code to flash
259
261
matrix :
260
- # the code to flash
262
+ # the code to flash
261
263
example : ${{ fromJson(needs.setup.outputs.matrix_hil) }}
262
264
263
265
# board packages we want to run
@@ -321,41 +323,6 @@ jobs:
321
323
done
322
324
323
325
324
-
325
-
326
-
327
-
328
- # declare -a typelist
329
- # declare -a seriallist
330
- # export PATH=$PATH:/opt/runner_support/Unity
331
-
332
-
333
- # for TYPE in "${typelist[@]}";
334
- # do
335
- # declare -a serials
336
- # mapfile -t seriallist < <(python ./py_checkusb.py --type ${TYPE} --batch)
337
- # for line in "${seriallist[@]}";
338
- # do
339
- # readarray -td, serials <<<"$line"
340
- # export SERIAL_NUM=${serials[2]}
341
- # export HEXNAME=${serials[3]}
342
- # export DEVICE=${serials[4]}
343
- # export PORT=`./find_usb.sh $SERIAL_NUM`
344
-
345
- # echo "Repo name extracted: " ${{ needs.setup.outputs.repo }}
346
- # echo "Real repo name: " ${{ needs.setup.outputs.project }}
347
- # echo "Build HEX name: " $HEXNAME
348
- # echo "Port Serial Num: " $SERIAL_NUM
349
- # echo "Flash device: " $DEVICE
350
- # echo "Port found: " $PORT
351
- # echo "Board type name: " $TYPE
352
-
353
- # cd $HOME
354
- # python $HOME/.arduino15/packages/Infineon/hardware/xmc/3.2.0/tools/xmc-flasher.py upload -d $DEVICE -p $PORT -f $HOME/Arduino/libraries/${{ needs.setup.outputs.project }}/${{ matrix.example }}/build/$HEXNAME/*.hex
355
-
356
- # done
357
- # done
358
-
359
326
- name : Monitor
360
327
run : |
361
328
cd /opt/runner_support/
0 commit comments