File tree Expand file tree Collapse file tree 2 files changed +36
-5
lines changed Expand file tree Collapse file tree 2 files changed +36
-5
lines changed Original file line number Diff line number Diff line change 1
1
name : Compile Examples
2
2
3
+ # See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
3
4
on :
4
5
pull_request :
5
6
paths :
11
12
- " .github/workflows/compile-examples.yml"
12
13
- " examples/**"
13
14
- " src/**"
15
+ schedule :
16
+ # Run every Tuesday at 8 AM UTC to catch breakage caused by changes to external resources (libraries, platforms).
17
+ - cron : " 0 8 * * TUE"
18
+ workflow_dispatch :
19
+ repository_dispatch :
14
20
15
21
jobs :
16
22
build :
@@ -38,13 +44,14 @@ jobs:
38
44
- fqbn : arduino:mbed_nano:nanorp2040connect
39
45
platforms : |
40
46
- name: arduino:mbed_nano
47
+ artifact-name-suffix : arduino-mbed_nano-nanorp2040connect
41
48
42
49
steps :
43
- - name : Checkout
50
+ - name : Checkout repository
44
51
uses : actions/checkout@v4
45
52
46
53
- name : Compile examples
47
- uses : arduino/compile-sketches@main
54
+ uses : arduino/compile-sketches@v1
48
55
with :
49
56
fqbn : ${{ matrix.board.fqbn }}
50
57
platforms : ${{ matrix.board.platforms }}
53
60
github-token : ${{ secrets.GITHUB_TOKEN }}
54
61
sketches-report-path : ${{ env.SKETCHES_REPORTS_PATH }}
55
62
56
- - name : Save memory usage change report as artifact
57
- if : github.event_name == 'pull_request'
63
+ - name : Save sketches report as workflow artifact
58
64
uses : actions/upload-artifact@v4
59
65
with :
60
- name : ${{ env.SKETCHES_REPORTS_PATH }}
66
+ if-no-files-found : error
61
67
path : ${{ env.SKETCHES_REPORTS_PATH }}
68
+ name : sketches-report-${{ matrix.board.artifact-name-suffix }}
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