forked from arduino-libraries/WiFiNINA
-
Notifications
You must be signed in to change notification settings - Fork 0
131 lines (123 loc) · 4.28 KB
/
compile-examples.yml
File metadata and controls
131 lines (123 loc) · 4.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
name: Compile Examples
on:
pull_request:
paths:
- ".github/workflows/compile-examples.yml"
- "library.properties"
- "examples/**"
- "src/**"
push:
paths:
- ".github/workflows/compile-examples.yml"
- "library.properties"
- "examples/**"
- "src/**"
# Scheduled trigger checks for breakage caused by changes to external resources (libraries, platforms)
schedule:
# run every Saturday at 3 AM UTC
- cron: "0 3 * * 6"
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#workflow_dispatch
workflow_dispatch:
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#repository_dispatch
repository_dispatch:
jobs:
build:
name: ${{ matrix.board.fqbn }}
runs-on: ubuntu-latest
env:
SKETCHES_REPORTS_PATH: sketches-reports
UNIVERSAL_SKETCH_PATHS: |
- examples/AP_SimpleWebServer
- examples/ConnectNoEncryption
- examples/ConnectWithWEP
- examples/ConnectWithWPA
- examples/ConnectWithWPA2Enterprise
- examples/Prefs2Struct
- examples/ScanNetworks
- examples/ScanNetworksAdvanced
- examples/SimpleWebServerWiFi
- examples/WiFiAdvancedChatServer
- examples/WiFiChatServer
- examples/WiFiPing
- examples/WiFiSSLClient
- examples/WiFiStorage
- examples/WiFiUdpNtpClient
- examples/WiFiUdpSendReceiveString
- examples/WiFiWebClient
- examples/WiFiWebClientRepeating
- examples/WiFiWebServer
strategy:
fail-fast: false
matrix:
board:
- fqbn: arduino:samd:mkrwifi1010
platforms: |
- name: arduino:samd
artifact-name-suffix: arduino-samd-mkrwifi1010
- fqbn: arduino:samd:mkrvidor4000
platforms: |
- name: arduino:samd
artifact-name-suffix: arduino-samd-mkrvidor4000
- fqbn: arduino:samd:nano_33_iot
platforms: |
- name: arduino:samd
artifact-name-suffix: arduino-samd-nano_33_iot
- fqbn: arduino:megaavr:uno2018:mode=on
platforms: |
- name: arduino:megaavr
artifact-name-suffix: arduino-megaavr-uno2018
- fqbn: arduino:mbed_nano:nanorp2040connect
platforms: |
- name: arduino:mbed_nano
artifact-name-suffix: arduino-mbed_nano-nanorp2040connect
include:
# mkrwifi1010
- board:
fqbn: arduino:samd:mkrwifi1010
sketch-paths: |
- examples/PreferencesCounter
- examples/PreferencesValidation
# mkrvidor4000
- board:
fqbn: arduino:samd:mkrvidor4000
sketch-paths: |
- examples/PreferencesCounter
- examples/PreferencesValidation
# nano_33_iot
- board:
fqbn: arduino:samd:nano_33_iot
sketch-paths: |
- examples/PreferencesCounter
- examples/PreferencesValidation
# uno2018
- board:
fqbn: arduino:megaavr:uno2018:mode=on
# nanorp2040connect
- board:
fqbn: arduino:mbed_nano:nanorp2040connect
sketch-paths: |
- examples/PreferencesCounter
- examples/PreferencesValidation
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Compile examples
uses: arduino/compile-sketches@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
fqbn: ${{ matrix.board.fqbn }}
libraries: |
# Install the library from the local path.
- source-path: ./
# Install library dependencies.
- name: VidorPeripherals
sketch-paths: |
${{ matrix.sketch-paths }}
enable-deltas-report: true
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}
- name: Save memory usage change report as artifact
uses: actions/upload-artifact@v4
with:
if-no-files-found: error
path: ${{ env.SKETCHES_REPORTS_PATH }}
name: sketches-report-${{ matrix.board.artifact-name-suffix }}