@@ -114,6 +114,95 @@ jobs:
114
114
report-artifact-name : ${{ steps.report-artifact-name.outputs.report-artifact-name }}
115
115
116
116
117
+ multiple-steps :
118
+ name : multiple-steps (${{ matrix.board.source-type }})
119
+ runs-on : ubuntu-latest
120
+
121
+ strategy :
122
+ fail-fast : false
123
+
124
+ matrix :
125
+ board :
126
+ - source-type : manager
127
+ fqbn : arduino:avr:uno
128
+ platforms : |
129
+ - name: arduino:avr
130
+ version: 1.8.3
131
+ libraries : |
132
+ - name: Servo
133
+ version: 1.1.7
134
+ - source-type : path
135
+ fqbn : arduino:avr:uno
136
+ platforms : |
137
+ - name: arduino:avr
138
+ version: 1.8.3
139
+ - source-path: extras/ArduinoCore-avr
140
+ name: arduino:avr
141
+ libraries : |
142
+ - source-path: ./
143
+ name: Servo
144
+ - source-type : repo
145
+ fqbn : arduino:avr:uno
146
+ platforms : |
147
+ - name: arduino:avr
148
+ version: 1.8.3
149
+ - source-url: https://github.com/arduino/ArduinoCore-avr.git
150
+ name: arduino:avr
151
+ version: 1.8.3
152
+ libraries : |
153
+ - source-url: https://github.com/arduino-libraries/Servo.git
154
+ name: Servo
155
+ version: 1.1.7
156
+ - source-type : archive
157
+ fqbn : arduino:avr:uno
158
+ platforms : |
159
+ - name: arduino:avr
160
+ version: 1.8.3
161
+ - source-url: https://github.com/arduino/ArduinoCore-avr/archive/refs/tags/1.8.3.zip
162
+ name: arduino:avr
163
+ libraries : |
164
+ - source-url: https://github.com/arduino-libraries/Servo/archive/refs/tags/1.1.7.zip
165
+ name: Servo
166
+
167
+ steps :
168
+ - name : Checkout library
169
+ uses : actions/checkout@v2
170
+ with :
171
+ repository : arduino-libraries/Servo
172
+ ref : 1.1.7
173
+
174
+ - name : Checkout platform
175
+ if : matrix.board.source-type == 'path'
176
+ uses : actions/checkout@v2
177
+ with :
178
+ repository : arduino/ArduinoCore-avr
179
+ ref : 1.8.3
180
+ path : extras/ArduinoCore-avr
181
+
182
+ - name : Checkout local repo
183
+ uses : actions/checkout@v2
184
+ with :
185
+ path : extras/compile-sketches
186
+
187
+ - name : Run action
188
+ # Use action from local path
189
+ uses : ./extras/compile-sketches
190
+ with :
191
+ platforms : ${{ matrix.board.platforms }}
192
+ fqbn : ${{ matrix.board.fqbn }}
193
+ libraries : ${{ matrix.board.libraries }}
194
+ sketch-paths : |
195
+ - examples/Sweep
196
+
197
+ - name : Run action again
198
+ uses : ./extras/compile-sketches
199
+ with :
200
+ platforms : ${{ matrix.board.platforms }}
201
+ fqbn : ${{ matrix.board.fqbn }}
202
+ libraries : ${{ matrix.board.libraries }}
203
+ sketch-paths : |
204
+ - examples/Sweep
205
+
117
206
check-sketches-reports :
118
207
needs : all-inputs
119
208
runs-on : ubuntu-latest
0 commit comments