Skip to content

Commit a18eccc

Browse files
committed
Reinsert types to compile WiFiNINA examples only for Uno WiFi Rev2
1 parent c9587a2 commit a18eccc

File tree

1 file changed

+22
-9
lines changed

1 file changed

+22
-9
lines changed

Diff for: .github/workflows/compile-examples.yml

+22-9
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,27 @@ jobs:
3737
- ~/Arduino/libraries/Arduino_LSM9DS1/examples
3838
- ~/Arduino/libraries/SD/examples
3939
- ~/Arduino/libraries/Arduino_JSON/examples
40-
4140
strategy:
4241
fail-fast: false
4342

4443
matrix:
45-
fqbn:
46-
- "arduino:megaavr:uno2018:mode=on"
47-
- "arduino:megaavr:uno2018:mode=off"
48-
- "arduino:megaavr:nona4809"
44+
board: [
45+
{"fqbn": "arduino:megaavr:uno2018:mode=on", "type": "UnoWiFiRev2"},
46+
{"fqbn": "arduino:megaavr:uno2018:mode=off", "type": "UnoWiFiRev2"},
47+
{"fqbn": "arduino:megaavr:nona4809", "type": "NanoEvery"}
48+
]
49+
50+
# make board type-specific customizations to the matrix jobs
51+
include:
52+
# Uno WiFi Rev2
53+
- board:
54+
type: "UnoWiFiRev2"
55+
additional-sketch-paths: |
56+
- ~/Arduino/libraries/WiFiNINA/examples
57+
# Nano Every
58+
- board:
59+
type: "NanoEvery"
60+
additional-sketch-paths: ''
4961

5062
steps:
5163
- name: Checkout repository
@@ -75,11 +87,10 @@ jobs:
7587
rm -r "$GITHUB_WORKSPACE/extras/examples/10.StarterKit_BasicKit/p11_CrystalBall"
7688
# CapacitiveSensor library does not support megaAVR core yet
7789
rm -r "$GITHUB_WORKSPACE/extras/examples/10.StarterKit_BasicKit/p13_TouchSensorLamp"
78-
7990
- name: Compile examples
8091
uses: arduino/actions/libraries/compile-examples@master
8192
with:
82-
fqbn: ${{ matrix.fqbn }}
93+
fqbn: ${{ matrix.board.fqbn }}
8394
libraries: |
8495
- name: Adafruit IO Arduino
8596
- name: Adafruit MQTT Library
@@ -116,8 +127,10 @@ jobs:
116127
# Overwrite the Board Manager installation with the local platform
117128
- source-path: "./"
118129
name: "arduino:megaavr"
119-
sketch-paths: "${{ env.UNIVERSAL_SKETCH_PATHS }}"
120-
enable-size-deltas-report: 'true'
130+
sketch-paths: |
131+
${{ env.UNIVERSAL_SKETCH_PATHS }}
132+
${{ matrix.additional-sketch-paths }}
133+
enable-deltas-report: 'true'
121134
verbose: 'true'
122135

123136
- name: Save memory usage change report as artifact

0 commit comments

Comments
 (0)