92
92
matrix :
93
93
board :
94
94
- fqbn : arduino:avr:uno
95
+ artifact-name-suffix : arduino-avr-uno
95
96
platforms : |
96
97
- name: arduino:avr
97
98
version: 1.8.3
@@ -100,6 +101,7 @@ jobs:
100
101
version: 1.1.7
101
102
# Board that requires Boards Manager URL
102
103
- fqbn : esp8266:esp8266:huzzah
104
+ artifact-name-suffix : esp8266-esp8266-huzzah
103
105
platforms : |
104
106
- name: esp8266:esp8266
105
107
source-url: https://arduino.esp8266.com/stable/package_esp8266com_index.json
@@ -140,18 +142,18 @@ jobs:
140
142
[ -d ${{ env.TESTDATA_SKETCHES_PATH }}/BareMinimum/build ]
141
143
142
144
- name : Set report artifact name
143
- id : report-artifact-name
145
+ id : report-artifact-prefix
144
146
run : |
145
- echo "report-artifact-name =${{ github.job }}" >> "$GITHUB_OUTPUT"
147
+ echo "report-artifact-prefix =${{ github.job }}" >> "$GITHUB_OUTPUT"
146
148
147
149
- name : Save sketches report as workflow artifact
148
- uses : actions/upload-artifact@v3
150
+ uses : actions/upload-artifact@v4
149
151
with :
150
152
path : sketches-reports
151
- name : ${{ steps.report-artifact-name .outputs.report-artifact-name }}
153
+ name : ${{ steps.report-artifact-prefix .outputs.report-artifact-prefix }}-${{ matrix.board.artifact- name-suffix }}
152
154
153
155
outputs :
154
- report-artifact-name : ${{ steps.report-artifact-name .outputs.report-artifact-name }}
156
+ report-artifact-prefix : ${{ steps.report-artifact-prefix .outputs.report-artifact-prefix }}
155
157
156
158
multiple-steps :
157
159
name : multiple-steps (${{ matrix.board.source-type }})
@@ -320,10 +322,11 @@ jobs:
320
322
uses : actions/checkout@v4
321
323
322
324
- name : Download sketches reports artifact
323
- uses : actions/download-artifact@v3
325
+ uses : actions/download-artifact@v4
324
326
with :
325
- name : ${{ needs.all-inputs.outputs.report-artifact-name }}
327
+ merge-multiple : true
326
328
path : ${{ env.SKETCHES_REPORTS_PATH }}
329
+ pattern : ${{ needs.all-inputs.outputs.report-artifact-prefix }}*
327
330
328
331
- name : Compare generated sketches report to golden report
329
332
run : |
@@ -349,7 +352,7 @@ jobs:
349
352
"$reportPath" \
350
353
--slurpfile \
351
354
golden \
352
- "${{ env.TESTDATA_REPORTS_PATH }}/${{ needs.all-inputs.outputs.report-artifact-name }}/$(basename "$reportPath")" \
355
+ "${{ env.TESTDATA_REPORTS_PATH }}/${{ needs.all-inputs.outputs.report-artifact-prefix }}/$(basename "$reportPath")" \
353
356
'($generated|.[0].boards) == ($golden|.[0].boards)'
354
357
) && (
355
358
# Check the commit_hash value
0 commit comments