Skip to content

Commit 1021f2e

Browse files
committed
Test3, fully parameterized
1 parent 8bcf8e5 commit 1021f2e

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

.github/workflows/arduino_ci.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,11 @@ jobs:
4444
# Fetch variables and move them to the GITHUB_OUTPUT and fetch HIL information
4545
- id: set-matrix
4646
run: |
47-
# Fetch the repository name
4847
REPO="$(basename "$GITHUB_REPOSITORY")"
4948
echo "repo=$REPO" >> $GITHUB_OUTPUT
50-
51-
# Fetch the project name from the xfp-dev arduino workspace-setup
5249
export $(xfp-dev arduino workspace-setup project-name)
5350
echo "project=$PROJECTNAME" >> $GITHUB_OUTPUT
5451
55-
# Fetch the example data
56-
57-
# Fetch the examples from the library
5852
cd $GITHUB_WORKSPACE/src/framework/arduino
5953
declare -a data
6054
for x in examples/*;
@@ -64,26 +58,19 @@ jobs:
6458
export mvar=$(jq --compact-output --null-input '$ARGS.positional' --args -- "${data[@]}")
6559
echo matrix_example="$mvar" >> $GITHUB_OUTPUT
6660
67-
# Fetch the fqbn from the fqbn.yml
6861
cd $GITHUB_WORKSPACE/.github
6962
mfqbn=$(cat ./fqbn.yml | shyaml get-values fqbn | awk '{printf " --fqbn=%s", $0}')
7063
echo "fqbn_example=$mfqbn" >> $GITHUB_OUTPUT
7164
72-
# Fetch the HIL information
7365
eexmp=`cat ./fqbn.yml | shyaml get-value hil.example`
7466
efqbn=`cat ./fqbn.yml | shyaml get-value hil.fqbn`
7567
echo "matrix_hil=$eexmp" >> $GITHUB_OUTPUT
7668
echo "fqbn_hil=$efqbn" >> $GITHUB_OUTPUT
7769
78-
echo "fqbn_hil=$efqbn"
79-
echo "matrix_hil=$eexmp"
80-
8170
cd /opt/runner_support/
8271
python py_checkusb.py --switch repo --namelist $REPO --onoff on
8372
declare -a typelist
8473
declare -a seriallist
85-
86-
# Fetch the serial numbers for the HIL
8774
mapfile -t typelist < <(python ./py_checkusb.py --repo ${REPO} --full --batch)
8875
for TYPE in "${typelist[@]}";
8976
do
@@ -117,6 +104,7 @@ jobs:
117104

118105
matrix_example: ${{ steps.set-matrix.outputs.matrix_example }}
119106
fqbn_example: ${{ steps.set-matrix.outputs.fqbn_example }}
107+
120108
matrix_hil: ${{ steps.set-matrix.outputs.matrix_hil }}
121109
fqbn_hil: ${{ steps.set-matrix.outputs.fqbn_hil }}
122110
serials_hil: ${{ steps.set-matrix.outputs.serials_hil }}
@@ -270,7 +258,7 @@ jobs:
270258
# the code to flash
271259
matrix:
272260
# the code to flash
273-
example: ${{ fromJson(needs.setup.outputs.matrix_example) }}
261+
example: ${{ fromJson(needs.setup.outputs.matrix_hil) }}
274262

275263
# board packages we want to run
276264
# attention the matrix spans over the fqbn not platform so that we can choose different boards

0 commit comments

Comments
 (0)