Skip to content

Commit 839ea56

Browse files
authored
Merge pull request #429 from pennam/action-update
Upgrade upload/artifacts and checkout actions to v4
2 parents b34e242 + 08e9d10 commit 839ea56

File tree

1 file changed

+22
-14
lines changed

1 file changed

+22
-14
lines changed

Diff for: .github/workflows/compile-examples.yml

+22-14
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,26 @@ jobs:
3838
- libraries/RTC/examples/Test_RTC
3939
- libraries/SoftwareSerial
4040
- libraries/WDT
41+
SKETCHES_REPORTS_PATH: sketches-reports
4142

4243
strategy:
4344
fail-fast: false
4445

4546
matrix:
46-
board: [
47-
{"fqbn": "arduino:renesas_portenta:portenta_c33"},
48-
{"fqbn": "arduino:renesas_uno:minima"},
49-
{"fqbn": "arduino:renesas_uno:unor4wifi"},
50-
{"fqbn": "arduino-git:renesas:portenta_c33"},
51-
{"fqbn": "arduino-git:renesas:minima"},
52-
{"fqbn": "arduino-git:renesas:unor4wifi"},
53-
]
47+
board:
48+
- fqbn: arduino:renesas_portenta:portenta_c33
49+
id: c33
50+
- fqbn: arduino:renesas_uno:minima
51+
id: minima
52+
- fqbn: arduino:renesas_uno:unor4wifi
53+
id: wifi
54+
- fqbn: arduino-git:renesas:portenta_c33
55+
id: git_c33
56+
- fqbn: arduino-git:renesas:minima
57+
id: git_minima
58+
- fqbn: arduino-git:renesas:unor4wifi
59+
id: git_wifi
60+
5461

5562
# make board type-specific customizations to the matrix jobs
5663
include:
@@ -106,11 +113,11 @@ jobs:
106113
107114
steps:
108115
- name: Checkout repository
109-
uses: actions/checkout@v3
116+
uses: actions/checkout@v4
110117

111118
# The source files are in a subfolder of the ArduinoCore-API repository, so it's not possible to clone it directly to the final destination in the core
112119
- name: Checkout ArduinoCore-API
113-
uses: actions/checkout@v3
120+
uses: actions/checkout@v4
114121
with:
115122
repository: arduino/ArduinoCore-API
116123
path: extras/ArduinoCore-API
@@ -125,7 +132,7 @@ jobs:
125132
if: steps.checkapi.outputs.IS_API == 'true'
126133

127134
- name: Checkout Basic examples
128-
uses: actions/checkout@v3
135+
uses: actions/checkout@v4
129136
with:
130137
repository: arduino/arduino-examples
131138
path: examples
@@ -173,9 +180,10 @@ jobs:
173180
enable-deltas-report: 'false'
174181
verbose: 'true'
175182
github-token: ${{ secrets.GITHUB_TOKEN }}
183+
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}
176184

177185
- name: Save memory usage change report as artifact
178-
uses: actions/upload-artifact@v3
186+
uses: actions/upload-artifact@v4
179187
with:
180-
name: sketches-reports
181-
path: sketches-reports
188+
path: ${{ env.SKETCHES_REPORTS_PATH }}
189+
name: sketches-reports-${{ matrix.board.id }}

0 commit comments

Comments
 (0)