Skip to content

Commit 9ecfe6b

Browse files
committed
Add ESP32 board to "Compile Examples" CI workflow
ESP32 support has been added to the library, so the examples compilation smoke test should be done for this architecture as well.
1 parent 15ae885 commit 9ecfe6b

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/compile-examples.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ jobs:
4646
{"fqbn": "arduino:samd:mkrnb1500", "type": "nb"},
4747
{"fqbn": "arduino:mbed:envie_m4", "type": "mbed"},
4848
{"fqbn": "arduino:mbed:envie_m7", "type": "mbed"},
49-
{"fqbn": "esp8266:esp8266:huzzah", "type": "esp8266"}
49+
{"fqbn": "esp8266:esp8266:huzzah", "type": "esp8266"},
50+
{"fqbn": "esp32:esp32:esp32", "type": "esp32"}
5051
]
5152

5253
# make board type-specific customizations to the matrix jobs
@@ -132,6 +133,15 @@ jobs:
132133
source-url: https://arduino.esp8266.com/stable/package_esp8266com_index.json
133134
libraries:
134135
sketch-paths:
136+
# ESP32 boards
137+
- board:
138+
type: "esp32"
139+
platforms: |
140+
# Install ESP32 platform via Boards Manager
141+
- name: esp32:esp32
142+
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
143+
libraries:
144+
sketch-paths:
135145

136146
steps:
137147
- name: Checkout
@@ -162,6 +172,10 @@ jobs:
162172
run: |
163173
mv "${{ env.ARDUINOCORE_API_STAGING_PATH }}/api" "${{ env.ARDUINOCORE_MBED_STAGING_PATH }}/cores/arduino"
164174
175+
- name: Install ESP32 platform dependencies
176+
if: matrix.board.type == 'esp32'
177+
run: pip3 install pyserial
178+
165179
- name: Compile examples
166180
uses: arduino/compile-sketches@main
167181
with:

0 commit comments

Comments
 (0)