Skip to content

Commit ce359ad

Browse files
committed
Add step to remove incompatible basic examples
1 parent cfd3a8d commit ce359ad

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/compile-examples.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
env:
1010
# libraries to install for all boards
11-
UNIVERSAL_LIBRARIES: "MFRC522"
11+
UNIVERSAL_LIBRARIES: '"MFRC522" "Servo"'
1212
# sketch paths to compile (recursive) for all boards
1313
UNIVERSAL_SKETCH_PATHS: '"extras/examples" "libraries/Wire" "libraries/SPI" "libraries/SoftwareSerial" "libraries/EEPROM"'
1414

@@ -56,7 +56,10 @@ jobs:
5656
uses: actions/checkout@v2
5757
with:
5858
repository: arduino/arduino-examples
59-
path: extras/examples
59+
path: extras
60+
61+
- name: Delete incompatible examples
62+
run: rm -r "$GITHUB_WORKSPACE/extras/examples/09.USB" && rm -r "$GITHUB_WORKSPACE/extras/examples/10.StarterKit_BasicKit/p11_CrystalBall" && rm -r "$GITHUB_WORKSPACE/extras/examples/10.StarterKit_BasicKit/p13_TouchSensorLamp"
6063

6164
- name: Compile examples
6265
uses: arduino/actions/libraries/compile-examples@master
@@ -68,6 +71,7 @@ jobs:
6871
- name: ArduinoHttpClient
6972
- name: Adafruit FONA Library
7073
- name: MegunoLink
74+
- name: Servo
7175
platforms: |
7276
# Use Board Manager to install the latest release of Arduino megaAVR Boards to get the toolchain
7377
- name: "arduino:megaavr"

0 commit comments

Comments
 (0)