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 :
23
29
- source-path: ./
24
30
- name: ArduinoECCX08
25
31
# sketch paths to compile (recursive) for all boards
26
- UNIVERSAL_SKETCH_PATHS : ' "examples/SHA1" "examples/SHA256"'
32
+ UNIVERSAL_SKETCH_PATHS : |
33
+ - examples/SHA1
34
+ - examples/SHA256
35
+ SKETCHES_REPORTS_PATH : sketches-reports
27
36
28
37
strategy :
29
38
fail-fast : false
@@ -44,33 +53,38 @@ jobs:
44
53
type : wifi101
45
54
libraries : |
46
55
- name: WiFi101
47
- sketch-paths : ' "examples/WiFiSSLClient"'
56
+ sketch-paths : |
57
+ - examples/WiFiSSLClient
48
58
# GSM boards
49
59
- board :
50
60
type : gsm
51
61
libraries : |
52
62
- name: MKRGSM
53
- sketch-paths : ' "examples/MKRGSMSSLClient"'
63
+ sketch-paths : |
64
+ - examples/MKRGSMSSLClient
54
65
55
66
steps :
56
67
- name : Checkout
57
68
uses : actions/checkout@v2
58
69
59
70
- name : Compile examples
60
- uses : per1234/actions/libraries/ compile-examples@beaac5ae4bb7ab294f1305e436172fde4c281fc8
71
+ uses : arduino/ compile-sketches@main
61
72
with :
73
+ github-token : ${{ secrets.GITHUB_TOKEN }}
62
74
fqbn : ${{ matrix.board.fqbn }}
63
75
libraries : |
64
76
${{ env.UNIVERSAL_LIBRARIES }}
65
77
${{ matrix.libraries }}
66
- sketch-paths : ${{ env.UNIVERSAL_SKETCH_PATHS }} ${{ matrix.sketch-paths }}
67
- size-report-sketch : SHA256
68
- enable-size-deltas-report : true
78
+ sketch-paths : |
79
+ ${{ env.UNIVERSAL_SKETCH_PATHS }}
80
+ ${{ matrix.sketch-paths }}
69
81
verbose : true
82
+ enable-deltas-report : true
83
+ sketches-report-path : ${{ env.SKETCHES_REPORTS_PATH }}
70
84
71
85
- name : Save sketches report as artifact
72
86
if : github.event_name == 'pull_request'
73
87
uses : actions/upload-artifact@v2
74
88
with :
75
- name : size-deltas-reports
76
- path : size-deltas-reports
89
+ path : ${{ env.SKETCHES_REPORTS_PATH }}
90
+ name : ${{ env.SKETCHES_REPORTS_PATH }}
0 commit comments