@@ -44,17 +44,11 @@ jobs:
44
44
# Fetch variables and move them to the GITHUB_OUTPUT and fetch HIL information
45
45
- id : set-matrix
46
46
run : |
47
- # Fetch the repository name
48
47
REPO="$(basename "$GITHUB_REPOSITORY")"
49
48
echo "repo=$REPO" >> $GITHUB_OUTPUT
50
-
51
- # Fetch the project name from the xfp-dev arduino workspace-setup
52
49
export $(xfp-dev arduino workspace-setup project-name)
53
50
echo "project=$PROJECTNAME" >> $GITHUB_OUTPUT
54
51
55
- # Fetch the example data
56
-
57
- # Fetch the examples from the library
58
52
cd $GITHUB_WORKSPACE/src/framework/arduino
59
53
declare -a data
60
54
for x in examples/*;
@@ -64,26 +58,19 @@ jobs:
64
58
export mvar=$(jq --compact-output --null-input '$ARGS.positional' --args -- "${data[@]}")
65
59
echo matrix_example="$mvar" >> $GITHUB_OUTPUT
66
60
67
- # Fetch the fqbn from the fqbn.yml
68
61
cd $GITHUB_WORKSPACE/.github
69
62
mfqbn=$(cat ./fqbn.yml | shyaml get-values fqbn | awk '{printf " --fqbn=%s", $0}')
70
63
echo "fqbn_example=$mfqbn" >> $GITHUB_OUTPUT
71
64
72
- # Fetch the HIL information
73
65
eexmp=`cat ./fqbn.yml | shyaml get-value hil.example`
74
66
efqbn=`cat ./fqbn.yml | shyaml get-value hil.fqbn`
75
67
echo "matrix_hil=$eexmp" >> $GITHUB_OUTPUT
76
68
echo "fqbn_hil=$efqbn" >> $GITHUB_OUTPUT
77
69
78
- echo "fqbn_hil=$efqbn"
79
- echo "matrix_hil=$eexmp"
80
-
81
70
cd /opt/runner_support/
82
71
python py_checkusb.py --switch repo --namelist $REPO --onoff on
83
72
declare -a typelist
84
73
declare -a seriallist
85
-
86
- # Fetch the serial numbers for the HIL
87
74
mapfile -t typelist < <(python ./py_checkusb.py --repo ${REPO} --full --batch)
88
75
for TYPE in "${typelist[@]}";
89
76
do
@@ -117,6 +104,7 @@ jobs:
117
104
118
105
matrix_example : ${{ steps.set-matrix.outputs.matrix_example }}
119
106
fqbn_example : ${{ steps.set-matrix.outputs.fqbn_example }}
107
+
120
108
matrix_hil : ${{ steps.set-matrix.outputs.matrix_hil }}
121
109
fqbn_hil : ${{ steps.set-matrix.outputs.fqbn_hil }}
122
110
serials_hil : ${{ steps.set-matrix.outputs.serials_hil }}
@@ -270,7 +258,7 @@ jobs:
270
258
# the code to flash
271
259
matrix :
272
260
# the code to flash
273
- example : ${{ fromJson(needs.setup.outputs.matrix_example ) }}
261
+ example : ${{ fromJson(needs.setup.outputs.matrix_hil ) }}
274
262
275
263
# board packages we want to run
276
264
# attention the matrix spans over the fqbn not platform so that we can choose different boards
0 commit comments