Skip to content

Commit 57e6705

Browse files
committed
Test3, fully parameterized
1 parent 1021f2e commit 57e6705

File tree

2 files changed

+8
-41
lines changed

2 files changed

+8
-41
lines changed

.github/fqbn.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ fqbn:
1111

1212
hil:
1313
fqbn: Infineon:xmc:XMC1100_XMC2GO
14-
example: examples/readAngleTest
14+
example: "examples/readAngleTest"

.github/workflows/arduino_ci.yml

Lines changed: 7 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,12 @@ jobs:
6262
mfqbn=$(cat ./fqbn.yml | shyaml get-values fqbn | awk '{printf " --fqbn=%s", $0}')
6363
echo "fqbn_example=$mfqbn" >> $GITHUB_OUTPUT
6464
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
6971
7072
cd /opt/runner_support/
7173
python py_checkusb.py --switch repo --namelist $REPO --onoff on
@@ -257,7 +259,7 @@ jobs:
257259

258260
# the code to flash
259261
matrix:
260-
# the code to flash
262+
# the code to flash
261263
example: ${{ fromJson(needs.setup.outputs.matrix_hil) }}
262264

263265
# board packages we want to run
@@ -321,41 +323,6 @@ jobs:
321323
done
322324
323325
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-
359326
- name: Monitor
360327
run: |
361328
cd /opt/runner_support/

0 commit comments

Comments
 (0)