File tree 3 files changed +86
-0
lines changed
3 files changed +86
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Compile Examples
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/compile-examples.yml"
8
+ - " examples/**"
9
+ - " src/**"
10
+ pull_request :
11
+ paths :
12
+ - " .github/workflows/compile-examples.yml"
13
+ - " examples/**"
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 :
20
+
21
+ jobs :
22
+ build :
23
+ name : ${{ matrix.board.fqbn }}
24
+ runs-on : ubuntu-latest
25
+
26
+ env :
27
+ SKETCHES_REPORTS_PATH : sketches-reports
28
+
29
+ strategy :
30
+ fail-fast : false
31
+
32
+ matrix :
33
+ board :
34
+ - fqbn : arduino:mbed_giga:giga
35
+ platforms : |
36
+ - name: arduino:mbed_giga
37
+
38
+ steps :
39
+ - name : Checkout repository
40
+ uses : actions/checkout@v3
41
+
42
+ - name : Compile examples
43
+ uses : arduino/compile-sketches@v1
44
+ with :
45
+ github-token : ${{ secrets.GITHUB_TOKEN }}
46
+ fqbn : ${{ matrix.board.fqbn }}
47
+ platforms : ${{ matrix.board.platforms }}
48
+ libraries : |
49
+ # Install the library from the local path.
50
+ - source-path: ./
51
+ sketch-paths : |
52
+ - examples
53
+ enable-deltas-report : true
54
+ sketches-report-path : ${{ env.SKETCHES_REPORTS_PATH }}
55
+
56
+ - name : Save sketches report as workflow artifact
57
+ uses : actions/upload-artifact@v3
58
+ with :
59
+ if-no-files-found : error
60
+ path : ${{ env.SKETCHES_REPORTS_PATH }}
61
+ name : ${{ 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
+ # The name of the workflow artifact created by the sketch compilation workflow
24
+ sketches-reports-source : sketches-reports
Original file line number Diff line number Diff line change 1
1
AdvancedAnalogRedux 〰
2
2
======================
3
+ [ ![ Compile Examples status] ( https://github.com/bcmi-labs/AdvancedAnalogRedux/actions/workflows/compile-examples.yml/badge.svg )] ( https://github.com/bcmi-labs/AdvancedAnalogRedux/actions/workflows/compile-examples.yml )
3
4
[ ![ Spell Check status] ( https://github.com/bcmi-labs/AdvancedAnalogRedux/actions/workflows/spell-check-task.yml/badge.svg )] ( https://github.com/bcmi-labs/AdvancedAnalogRedux/actions/workflows/spell-check-task.yml )
4
5
[ ![ Sync Labels status] ( https://github.com/bcmi-labs/AdvancedAnalogRedux/actions/workflows/sync-labels.yml/badge.svg )] ( https://github.com/bcmi-labs/AdvancedAnalogRedux/actions/workflows/sync-labels.yml )
5
6
[ ![ Arduino Lint] ( https://github.com/bcmi-labs/AdvancedAnalogRedux/workflows/Arduino%20Lint/badge.svg )] ( https://github.com/bcmi-labs/AdvancedAnalogRedux/actions?workflow=Arduino+Lint )
You can’t perform that action at this time.
0 commit comments