From c2dc02d9c312e10857c20fa30a851c0d3c3471d0 Mon Sep 17 00:00:00 2001 From: Alexander Entinger Date: Wed, 6 Mar 2024 11:10:56 +0100 Subject: [PATCH] Add action/report-size-deltas. (#20) --- .github/workflows/compile-examples.yml | 9 +++++++-- .github/workflows/report-size-deltas.yml | 16 ++++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/report-size-deltas.yml diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index c3d6290..9e7c59c 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -32,23 +32,27 @@ jobs: platforms: | - name: rp2040:rp2040 source-url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json + artifact-name-suffix: rp2040-rp2040-rpipico - fqbn: rp2040:rp2040:arduino_nano_connect platforms: | - name: rp2040:rp2040 source-url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json + artifact-name-suffix: rp2040-rp2040-arduino_nano_connect - fqbn: arduino:renesas_portenta:portenta_c33 platforms: | - name: arduino:renesas_portenta + artifact-name-suffix: renesas-portenta-portenta-c33 - fqbn: arduino:renesas_uno:minima platforms: | - name: arduino:renesas_uno + artifact-name-suffix: renesas-uno-minima steps: - name: Checkout uses: actions/checkout@v4 - name: Compile examples - uses: arduino/compile-sketches@main + uses: arduino/compile-sketches@v1 with: fqbn: ${{ matrix.board.fqbn }} platforms: ${{ matrix.board.platforms }} @@ -61,5 +65,6 @@ jobs: if: github.event_name == 'pull_request' uses: actions/upload-artifact@v4 with: - name: ${{ env.SKETCHES_REPORTS_PATH }} + if-no-files-found: error path: ${{ env.SKETCHES_REPORTS_PATH }} + name: sketches-report-${{ matrix.board.artifact-name-suffix }} diff --git a/.github/workflows/report-size-deltas.yml b/.github/workflows/report-size-deltas.yml new file mode 100644 index 0000000..193d06b --- /dev/null +++ b/.github/workflows/report-size-deltas.yml @@ -0,0 +1,16 @@ +name: Report Size Deltas + +on: + schedule: + - cron: '*/5 * * * *' + +jobs: + report: + runs-on: ubuntu-latest + + steps: + # See: https://github.com/arduino/report-size-deltas/README.md + uses: arduino/report-size-deltas@v1 + with: + # Regex matching the names of the workflow artifacts created by the "Compile Examples" workflow + sketches-reports-source: ^sketches-report-.+