Skip to content

Commit 115dced

Browse files
committed
Remove compilations of sketches using tone() for Due from CI workflow
The tone() function has not been implemented in the core library of the Due's "Arduino ARM (32-bits) Boards" platform. Should the day ever come when this standardized component of the Arduino API is provided for the Due, this commit should be reverted.
1 parent 13626b5 commit 115dced

File tree

1 file changed

+31
-2
lines changed

1 file changed

+31
-2
lines changed

.github/workflows/compile-examples.yml

+31-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ jobs:
4848
# Sketch paths to compile (recursive) for all boards
4949
UNIVERSAL_SKETCH_PATHS: >-
5050
"examples/01.Basics"
51-
"examples/02.Digital"
51+
"examples/02.Digital/BlinkWithoutDelay"
52+
"examples/02.Digital/Button"
53+
"examples/02.Digital/Debounce"
54+
"examples/02.Digital/DigitalInputPullup"
55+
"examples/02.Digital/StateChangeDetection"
5256
"examples/03.Analog"
5357
"examples/04.Communication/ASCIITable"
5458
"examples/04.Communication/Dimmer"
@@ -76,36 +80,46 @@ jobs:
7680
usb: false
7781
serial1: false
7882
starter-kit: true
83+
tone: true
7984
# Adding this in addition to the Uno because it has 1.5 kB less available flash
8085
- fqbn: arduino:avr:nano
8186
usb: false
8287
serial1: false
8388
starter-kit: false
89+
tone: true
8490
- fqbn: arduino:avr:leonardo
8591
usb: true
8692
serial1: true
8793
starter-kit: false
94+
tone: true
8895
- fqbn: arduino:megaavr:uno2018:mode=off
8996
usb: false
9097
serial1: true
9198
starter-kit: false
99+
tone: true
92100
- fqbn: arduino:samd:mkrzero
93101
usb: true
94102
serial1: true
95103
starter-kit: false
104+
tone: true
96105
- fqbn: arduino:mbed:nano33ble
97106
usb: false
98107
serial1: true
99108
starter-kit: false
109+
tone: true
100110
# Change this to arduino:mbed:envie_m7 once there is a production release of the Arduino Mbed OS Boards platform
101111
- fqbn: arduino-beta:mbed:envie_m7
102112
usb: false
103113
serial1: true
104114
starter-kit: false
115+
tone: true
105116
- fqbn: arduino:sam:arduino_due_x
106117
usb: true
107118
serial1: true
108119
starter-kit: false
120+
# Bug report: https://github.com/arduino/ArduinoCore-sam/issues/24
121+
# Change the value to true once it is fixed.
122+
tone: false
109123

110124
# Make board type-specific customizations to the matrix jobs
111125
include:
@@ -139,6 +153,16 @@ jobs:
139153
- board:
140154
starter-kit: false
141155
starter-kit-sketch-paths: ""
156+
- board:
157+
tone: true
158+
tone-sketch-paths: >-
159+
"examples/02.Digital/toneKeyboard"
160+
"examples/02.Digital/toneMelody"
161+
"examples/02.Digital/toneMultiple"
162+
"examples/02.Digital/tonePitchFollower"
163+
- board:
164+
tone: false
165+
tone-sketch-paths: ""
142166

143167
steps:
144168
- name: Checkout
@@ -151,6 +175,11 @@ jobs:
151175
libraries: |
152176
${{ env.UNIVERSAL_LIBRARIES }}
153177
${{ matrix.usb-libraries }}
154-
sketch-paths: '${{ env.UNIVERSAL_SKETCH_PATHS }} ${{ matrix.usb-sketch-paths }} ${{ matrix.serial1-sketch-paths }} ${{ matrix.starter-kit-sketch-paths }}'
178+
sketch-paths: >-
179+
${{ env.UNIVERSAL_SKETCH_PATHS }}
180+
${{ matrix.usb-sketch-paths }}
181+
${{ matrix.serial1-sketch-paths }}
182+
${{ matrix.starter-kit-sketch-paths }}
183+
${{ matrix.tone-sketch-paths }}
155184
# This input can be removed once the repository is made public
156185
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)