From d7d7fa16df9e0894924e9dd88ecde60fc65772b6 Mon Sep 17 00:00:00 2001 From: pennam Date: Thu, 6 Feb 2025 16:27:07 +0100 Subject: [PATCH 1/4] Update actions/checkout to v4 --- .github/workflows/compile-examples.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index 3340e3c46..f6f5b7214 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -106,11 +106,11 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # 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 - name: Checkout ArduinoCore-API - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: arduino/ArduinoCore-API path: extras/ArduinoCore-API @@ -125,7 +125,7 @@ jobs: if: steps.checkapi.outputs.IS_API == 'true' - name: Checkout Basic examples - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: arduino/arduino-examples path: examples From 2f9a680a358a15789f46c50312cb2c9fbaa8c1c9 Mon Sep 17 00:00:00 2001 From: pennam Date: Thu, 6 Feb 2025 16:28:04 +0100 Subject: [PATCH 2/4] Update upload/artifacts to v4 --- .github/workflows/compile-examples.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index f6f5b7214..7765f8d07 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -175,7 +175,7 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} - name: Save memory usage change report as artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: sketches-reports path: sketches-reports From 61299ff27b2217e8bc280e82583559172d2d1ec9 Mon Sep 17 00:00:00 2001 From: pennam Date: Thu, 6 Feb 2025 16:28:34 +0100 Subject: [PATCH 3/4] Make artifacts name unique --- .github/workflows/compile-examples.yml | 28 +++++++++++++++++--------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index 7765f8d07..161a958a8 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -38,19 +38,26 @@ jobs: - libraries/RTC/examples/Test_RTC - libraries/SoftwareSerial - libraries/WDT + SKETCHES_REPORTS_PATH: sketches-reports strategy: fail-fast: false matrix: - board: [ - {"fqbn": "arduino:renesas_portenta:portenta_c33"}, - {"fqbn": "arduino:renesas_uno:minima"}, - {"fqbn": "arduino:renesas_uno:unor4wifi"}, - {"fqbn": "arduino-git:renesas:portenta_c33"}, - {"fqbn": "arduino-git:renesas:minima"}, - {"fqbn": "arduino-git:renesas:unor4wifi"}, - ] + board: + - fqbn: arduino:renesas_portenta:portenta_c33 + id: c33 + - fqbn: arduino:renesas_uno:minima + id: minima + - fqbn: arduino:renesas_uno:unor4wifi + id: wifi + - fqbn: arduino-git:renesas:portenta_c33 + id: git_c33 + - fqbn: arduino-git:renesas:minima + id: git_minima + - fqbn: arduino-git:renesas:unor4wifi + id: git_wifi + # make board type-specific customizations to the matrix jobs include: @@ -173,9 +180,10 @@ jobs: enable-deltas-report: 'false' verbose: 'true' github-token: ${{ secrets.GITHUB_TOKEN }} + sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }} - name: Save memory usage change report as artifact uses: actions/upload-artifact@v4 with: - name: sketches-reports - path: sketches-reports + path: ${{ env.SKETCHES_REPORTS_PATH }} + name: ${{ env.SKETCHES_REPORTS_PATH }}-${{ matrix.board.id }} From 08e9d1068c56781495bcc52ce4fb2657eca0bbd9 Mon Sep 17 00:00:00 2001 From: Mattia Pennasilico Date: Fri, 7 Feb 2025 09:17:28 +0100 Subject: [PATCH 4/4] Remove SKETCHES_REPORTS_PATH prefix from actions/upload-artifact name Co-authored-by: Per Tillisch --- .github/workflows/compile-examples.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index 161a958a8..39e02488f 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -186,4 +186,4 @@ jobs: uses: actions/upload-artifact@v4 with: path: ${{ env.SKETCHES_REPORTS_PATH }} - name: ${{ env.SKETCHES_REPORTS_PATH }}-${{ matrix.board.id }} + name: sketches-reports-${{ matrix.board.id }}