1
+ # Source: https://github.com/per1234/.github/blob/main/workflow-templates/compile-examples-private.md
1
2
name : Compile Examples
2
3
3
4
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
22
23
23
24
env :
24
25
UNIVERSAL_SKETCH_PATHS : |
25
- - examples/Battery
26
- - examples/Charger
27
- - examples/Standby_WakeFromPin
26
+ - examples/Battery
27
+ - examples/Charger
28
+ - examples/Standby_WakeFromPin
28
29
SKETCHES_REPORTS_PATH : sketches-reports
29
30
SKETCHES_REPORTS_ARTIFACT_NAME : sketches-reports
30
31
@@ -41,18 +42,17 @@ jobs:
41
42
42
43
matrix :
43
44
board :
44
- - fqbn : arduino:renesas_portenta:portenta_c33
45
- platforms : |
46
- - name: arduino:renesas_portenta
47
- artifact-name-suffix : arduino-renesas_portenta-portenta_c33
48
- additional-sketch-paths : examples/ChargStandby_WakeFromRTC_C33er
49
45
- fqbn : arduino:mbed_portenta:envie_m7
50
46
platforms : |
51
47
- name: arduino:mbed_portenta
52
48
artifact-name-suffix : arduino-mbed_portenta-envie_m7
49
+ additional-sketch-paths : examples/Standby_WakeFromRTC_C33
50
+ - fqbn : arduino:renesas_portenta:portenta_c33
51
+ platforms : |
52
+ - name: arduino:renesas_portenta
53
+ artifact-name-suffix : arduino-renesas_portenta-portenta_c33
53
54
additional-sketch-paths : examples/Standby_WakeFromRTC_H7
54
55
55
-
56
56
steps :
57
57
- name : Checkout repository
58
58
uses : actions/checkout@v4
64
64
fqbn : ${{ matrix.board.fqbn }}
65
65
platforms : ${{ matrix.board.platforms }}
66
66
libraries : |
67
- # Install the library from the local path.
68
67
- source-path: ./
69
- # - name: Arduino_PF1550
70
- - source-url: https://github.com/arduino-libraries/Arduino_PF1550.git
68
+ - name: Arduino_PF1550
71
69
- source-url: https://github.com/arduino-libraries/Arduino_LowPowerPortentaC33.git
72
70
sketch-paths : |
73
71
${{ env.UNIVERSAL_SKETCH_PATHS }}
79
77
uses : actions/upload-artifact@v4
80
78
with :
81
79
if-no-files-found : error
80
+ name : sketches-report-${{ matrix.board.artifact-name-suffix }}
82
81
path : ${{ env.SKETCHES_REPORTS_PATH }}
83
- name : ${{ env.SKETCHES_REPORTS_ARTIFACT_NAME }}
84
-
85
- report-size-deltas :
86
- needs : build
87
- # Run even if some compilations failed.
88
- if : always() && github.event_name == 'pull_request'
89
- runs-on : ubuntu-latest
90
- permissions :
91
- pull-requests : write
92
-
93
- steps :
94
- - name : Download sketches reports artifact
95
- id : download-artifact
96
- continue-on-error : true # If compilation failed for all boards then there are no artifacts
97
- uses : actions/download-artifact@v4
98
- with :
99
- name : ${{ env.SKETCHES_REPORTS_ARTIFACT_NAME }}
100
- path : ${{ env.SKETCHES_REPORTS_PATH }}
101
-
102
- - name : Comment size deltas report to PR
103
- uses : arduino/report-size-deltas@v1
104
- # If actions/download-artifact failed, there are no artifacts to report from.
105
- if : steps.download-artifact.outcome == 'success'
106
- with :
107
- sketches-reports-source : ${{ env.SKETCHES_REPORTS_PATH }}
0 commit comments