Skip to content

Commit 0c52270

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 6fe3cae commit 0c52270

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/compile-examples.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ jobs:
4444
platform-name: arduino:mbed
4545
- fqbn: "esp8266:esp8266:huzzah"
4646
platform-name: esp8266:esp8266
47+
- fqbn: "esp32:esp32:esp32"
48+
platform-name: esp32:esp32
4749

4850
# Make board type-specific customizations to the matrix jobs
4951
include:
@@ -66,6 +68,12 @@ jobs:
6668
# Install ESP8266 platform via Boards Manager
6769
- name: esp8266:esp8266
6870
source-url: https://arduino.esp8266.com/stable/package_esp8266com_index.json
71+
- board:
72+
platform-name: esp32:esp32
73+
platforms: |
74+
# Install ESP32 platform via Boards Manager
75+
- name: esp32:esp32
76+
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
6977
7078
steps:
7179
- uses: actions/checkout@v1
@@ -96,6 +104,10 @@ jobs:
96104
run: |
97105
mv "${{ env.ARDUINOCORE_API_STAGING_PATH }}/api" "${{ env.ARDUINOCORE_MBED_STAGING_PATH }}/cores/arduino"
98106
107+
- name: Install ESP32 platform dependencies
108+
if: matrix.board.platform-name == 'esp32:esp32'
109+
run: pip3 install pyserial
110+
99111
- name: Compile examples
100112
uses: arduino/compile-sketches@main
101113
with:

0 commit comments

Comments
 (0)