Skip to content

Commit

Permalink
Add action/report-size-deltas.
Browse files Browse the repository at this point in the history
  • Loading branch information
aentinger committed Mar 6, 2024
1 parent ffb8dde commit 78fdfe6
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/compile-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 }}
16 changes: 16 additions & 0 deletions .github/workflows/report-size-deltas.yml
Original file line number Diff line number Diff line change
@@ -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-.+

0 comments on commit 78fdfe6

Please sign in to comment.