26
26
27
27
jobs :
28
28
compile-test :
29
- name : compile for ${{ matrix.fqbn }}
29
+ name : ${{ matrix.board .fqbn }}
30
30
runs-on : ubuntu-latest
31
31
32
32
env :
33
33
# libraries to install for all boards
34
34
UNIVERSAL_LIBRARIES : |
35
35
# Install the Arduino_Threads library from the repository
36
36
- source-path: ./
37
- - name: Arduino_LSM9DS1
38
- - name: Arduino_APDS9960
39
- - name: ArduinoECCX08
40
- - name: Arduino_HTS221
41
- - name: OneWire
42
37
# sketch paths to compile (recursive) for all boards
43
38
UNIVERSAL_SKETCH_PATHS : |
44
39
- examples
@@ -49,10 +44,19 @@ jobs:
49
44
fail-fast : false
50
45
51
46
matrix :
52
- fqbn :
53
- - " arduino:mbed:nano33ble"
54
- # - "arduino:mbed:envie_m4"
55
- - " arduino:mbed:envie_m7"
47
+ board :
48
+ - fqbn : arduino:mbed_nano:nano33ble
49
+ platforms : |
50
+ - name: arduino:mbed_nano
51
+ - fqbn : arduino:mbed_nano:nanorp2040connect
52
+ platforms : |
53
+ - name: arduino:mbed_nano
54
+ - fqbn : arduino:mbed_portenta:envie_m4
55
+ platforms : |
56
+ - name: arduino:mbed_portenta
57
+ - fqbn : arduino:mbed_portenta:envie_m7
58
+ platforms : |
59
+ - name: arduino:mbed_portenta
56
60
57
61
steps :
58
62
- name : Checkout
@@ -83,15 +87,10 @@ jobs:
83
87
uses : arduino/compile-sketches@v1
84
88
with :
85
89
cli-version : ' arduino_threads'
86
- fqbn : ${{ matrix.fqbn }}
90
+ fqbn : ${{ matrix.board. fqbn }}
87
91
libraries : |
88
92
${{ env.UNIVERSAL_LIBRARIES }}
89
- platforms : |
90
- # Use Board Manager to install the latest release of Arduino mbed Boards to get the toolchain
91
- - name: "arduino:mbed"
92
- # Overwrite the Board Manager installation with the local platform
93
- - source-path: "extras/ArduinoCore-mbed"
94
- name: "arduino:mbed"
93
+ platforms : ${{ matrix.board.platforms }}
95
94
sketch-paths : |
96
95
${{ env.UNIVERSAL_SKETCH_PATHS }}
97
96
enable-deltas-report : ' true'
0 commit comments