forked from TrippyLighting/EthernetBonjour
-
Notifications
You must be signed in to change notification settings - Fork 14
144 lines (135 loc) · 4.66 KB
/
compile-examples.yml
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
132
133
134
135
136
137
138
139
140
141
142
143
144
name: Compile Examples
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
on:
push:
paths:
- ".github/workflows/compile-examples.yml"
- "examples/**"
- "src/**"
pull_request:
paths:
- ".github/workflows/compile-examples.yml"
- "examples/**"
- "src/**"
schedule:
# Run every Tuesday at 8 AM UTC to catch breakage caused by changes to external resources (libraries, platforms).
- cron: "0 8 * * TUE"
workflow_dispatch:
repository_dispatch:
jobs:
build:
name: ${{ matrix.board.fqbn }}
runs-on: ubuntu-latest
env:
SKETCHES_REPORTS_PATH: sketches-reports
strategy:
fail-fast: false
matrix:
board:
- fqbn: arduino:avr:nano
platforms: |
- name: arduino:avr
type: ethernet
artifact-name-suffix: arduino-avr-nano
- fqbn: arduino:avr:mega
platforms: |
- name: arduino:avr
type: ethernet
artifact-name-suffix: arduino-avr-mega
- fqbn: arduino:avr:leonardo
platforms: |
- name: arduino:avr
type: ethernet
artifact-name-suffix: arduino-avr-leonardo
- fqbn: arduino:megaavr:uno2018
platforms: |
- name: arduino:megaavr
type: ethernet
artifact-name-suffix: arduino-megaavr-uno2018
- fqbn: arduino:megaavr:nona4809
platforms: |
- name: arduino:megaavr
type: ethernet
artifact-name-suffix: arduino-megaavr-nona4809
- fqbn: arduino:sam:arduino_due_x_dbg
platforms: |
- name: arduino:sam
type: ethernet
artifact-name-suffix: arduino-sam-arduino_due_x_dbg
- fqbn: arduino:samd:arduino_zero_edbg
platforms: |
- name: arduino:samd
type: ethernet
artifact-name-suffix: arduino-samd-arduino_zero_edbg
- fqbn: arduino:samd:mkrzero
platforms: |
- name: arduino:samd
type: ethernet
artifact-name-suffix: arduino-samd-mkrzero
- fqbn: arduino:samd:nano_33_iot
platforms: |
- name: arduino:samd
type: ethernet
artifact-name-suffix: arduino-samd-nano_33_iot
- fqbn: arduino:mbed_portenta:envie_m7:target_core=cm4
platforms: |
- name: arduino:mbed_portenta
type: ethernet
artifact-name-suffix: arduino-mbed_portenta-envie_m7-cm4
- fqbn: arduino:mbed_portenta:envie_m7
platforms: |
- name: arduino:mbed_portenta
type: ethernet
artifact-name-suffix: arduino-mbed_portenta-envie_m7-cm7
- fqbn: arduino:mbed_nano:nano33ble
platforms: |
- name: arduino:mbed_nano
type: ethernet
artifact-name-suffix: arduino-mbed_nano-nano33ble
- fqbn: arduino:mbed_nano:nanorp2040connect
platforms: |
- name: arduino:mbed_nano
type: ethernet
artifact-name-suffix: arduino-mbed_nano-nanorp2040connect
- fqbn: arduino:samd:mkr1000
platforms: |
- name: arduino:samd
type: wifi101
artifact-name-suffix: arduino-samd-mkr1000
# make board type-specific customizations to the matrix jobs
include:
- board:
type: ethernet
libraries: |
- name: Ethernet
sketch-paths: |
- examples/Ethernet
- board:
type: wifi101
libraries: |
- name: WiFi101
sketch-paths: |
- examples/WiFi
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Compile examples
uses: arduino/compile-sketches@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
fqbn: ${{ matrix.board.fqbn }}
platforms: ${{ matrix.board.platforms }}
libraries: |
# Install the library from the local path.
- source-path: ./
${{ matrix.libraries }}
sketch-paths: |
${{ matrix.sketch-paths }}
enable-deltas-report: true
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}
- name: Save sketches report as workflow 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 }}