File tree 2 files changed +28
-23
lines changed
2 files changed +28
-23
lines changed Original file line number Diff line number Diff line change 18
18
workflow_dispatch :
19
19
repository_dispatch :
20
20
21
- env :
22
- # It's convenient to set variables for values used multiple times in the workflow.
23
- SKETCHES_REPORTS_PATH : sketches-reports
24
-
25
21
jobs :
26
- compile :
22
+ build :
27
23
name : ${{ matrix.board.fqbn }}
28
24
runs-on : ubuntu-latest
29
25
26
+ env :
27
+ SKETCHES_REPORTS_PATH : sketches-reports
28
+
30
29
strategy :
31
30
fail-fast : false
32
31
62
61
if-no-files-found : error
63
62
path : ${{ env.SKETCHES_REPORTS_PATH }}
64
63
name : sketches-report-${{ matrix.board.artifact-name-suffix }}
65
-
66
- # When using a matrix to compile for multiple boards, it's necessary to use a separate job for the deltas report
67
- report :
68
- needs : compile # Wait for the compile job to finish to get the data for the report
69
- if : github.event_name == 'pull_request' # Only run the job when the workflow is triggered by a pull request
70
- runs-on : ubuntu-latest
71
-
72
- steps :
73
- # This step is needed to get the size data produced by the compile jobs
74
- - name : Download sketches reports artifacts
75
- uses : actions/download-artifact@v4
76
- with :
77
- # All workflow artifacts will be downloaded to this location.
78
- path : ${{ env.SKETCHES_REPORTS_PATH }}
79
-
80
- - uses : arduino/report-size-deltas@v1
81
- with :
82
- sketches-reports-source : ${{ env.SKETCHES_REPORTS_PATH }}
Original file line number Diff line number Diff line change
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-.+
You can’t perform that action at this time.
0 commit comments