Skip to content

Commit 5b165a2

Browse files
authored
Merge pull request #66 from arduino-libraries/fix-compile-examples
Fix size deltas report infrastructure configuration
2 parents 4ce0758 + 1a8727b commit 5b165a2

File tree

2 files changed

+28
-19
lines changed

2 files changed

+28
-19
lines changed

.github/workflows/compile-examples.yml

+4-19
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ on:
1818
workflow_dispatch:
1919
repository_dispatch:
2020

21-
env:
22-
SKETCHES_REPORTS_PATH: sketches-reports
23-
2421
jobs:
25-
compile:
22+
build:
2623
name: ${{ matrix.board.fqbn }}
2724
runs-on: ubuntu-latest
2825

26+
env:
27+
SKETCHES_REPORTS_PATH: sketches-reports
28+
2929
strategy:
3030
fail-fast: false
3131

@@ -135,18 +135,3 @@ jobs:
135135
if-no-files-found: error
136136
path: ${{ env.SKETCHES_REPORTS_PATH }}
137137
name: sketches-report-${{ matrix.board.artifact-name-suffix }}
138-
139-
report:
140-
needs: compile
141-
if: github.event_name == 'pull_request'
142-
runs-on: ubuntu-latest
143-
144-
steps:
145-
- name: Download sketches reports artifacts
146-
uses: actions/download-artifact@v4
147-
with:
148-
path: ${{ env.SKETCHES_REPORTS_PATH }}
149-
150-
- uses: arduino/report-size-deltas@v1
151-
with:
152-
sketches-reports-source: ${{ env.SKETCHES_REPORTS_PATH }}
+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Report Size Deltas
2+
3+
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
4+
on:
5+
push:
6+
paths:
7+
- ".github/workflows/report-size-deltas.yml"
8+
schedule:
9+
# Run at the minimum interval allowed by GitHub Actions.
10+
# Note: GitHub Actions periodically has outages which result in workflow failures.
11+
# In this event, the workflows will start passing again once the service recovers.
12+
- cron: "*/5 * * * *"
13+
workflow_dispatch:
14+
repository_dispatch:
15+
16+
jobs:
17+
report:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Comment size deltas reports to PRs
21+
uses: arduino/report-size-deltas@v1
22+
with:
23+
# Regex matching the names of the workflow artifacts created by the "Compile Examples" workflow
24+
sketches-reports-source: ^sketches-report-.+

0 commit comments

Comments
 (0)