From ee836876cd57184758816bde9bfe6278f90853c5 Mon Sep 17 00:00:00 2001 From: Alexander Entinger Date: Mon, 5 Feb 2024 17:25:13 +0100 Subject: [PATCH] Revert "Fix CI: disable report-size-deltas action. (#266)" This reverts commit 87b4a3b944f1a7ac9647075e14c03fa8fe9a1607. --- .github/workflows/compile-examples.yml | 9 +++++++++ .github/workflows/report-size-deltas.yml | 14 ++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 .github/workflows/report-size-deltas.yml diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index c55af1e4..b5b1def5 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -56,10 +56,19 @@ jobs: fqbn: ${{ matrix.board.fqbn }} platforms: ${{ matrix.board.platforms }} libraries: ${{ env.LIBRARIES }} + enable-deltas-report: true github-token: ${{ secrets.GITHUB_TOKEN }} + sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }} sketch-paths: | - examples/CAN/OpenCyphal-Blink - examples/CAN/OpenCyphal-Heartbeat-Publisher - examples/CAN/OpenCyphal-Heartbeat-Subscriber - examples/CAN/OpenCyphal-Service-Client - examples/CAN/OpenCyphal-Service-Server + + - name: Save memory usage change report as artifact + if: github.event_name == 'pull_request' + uses: actions/upload-artifact@v4 + with: + name: ${{ env.SKETCHES_REPORTS_PATH }} + path: ${{ env.SKETCHES_REPORTS_PATH }} diff --git a/.github/workflows/report-size-deltas.yml b/.github/workflows/report-size-deltas.yml new file mode 100644 index 00000000..b47bebfa --- /dev/null +++ b/.github/workflows/report-size-deltas.yml @@ -0,0 +1,14 @@ +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 + - name: Comment size deltas reports to PRs + uses: arduino/report-size-deltas@main