Skip to content

Commit 2da7a3a

Browse files
authored
Merge pull request #49 from per1234/esp32-ci
Add ESP32 board to "Compile Examples" CI workflow
2 parents b370eef + f624fbd commit 2da7a3a

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

.github/workflows/compile-examples.yml

+17-3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
LIBRARIES: Arduino_DebugUtils WiFi101 WiFiNINA MKRGSM MKRNB MKRWAN
2121
ARDUINOCORE_MBED_STAGING_PATH: extras/ArduinoCore-mbed
2222
ARDUINOCORE_API_STAGING_PATH: extras/ArduinoCore-API
23+
SKETCHES_REPORTS_PATH: sketches-reports
2324
strategy:
2425
matrix:
2526
board:
@@ -43,6 +44,8 @@ jobs:
4344
platform-name: arduino:mbed
4445
- fqbn: "esp8266:esp8266:huzzah"
4546
platform-name: esp8266:esp8266
47+
- fqbn: "esp32:esp32:esp32"
48+
platform-name: esp32:esp32
4649

4750
# Make board type-specific customizations to the matrix jobs
4851
include:
@@ -65,6 +68,12 @@ jobs:
6568
# Install ESP8266 platform via Boards Manager
6669
- name: esp8266:esp8266
6770
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
6877
6978
steps:
7079
- uses: actions/checkout@v1
@@ -95,18 +104,23 @@ jobs:
95104
run: |
96105
mv "${{ env.ARDUINOCORE_API_STAGING_PATH }}/api" "${{ env.ARDUINOCORE_MBED_STAGING_PATH }}/cores/arduino"
97106
107+
- name: Install ESP32 platform dependencies
108+
if: matrix.board.platform-name == 'esp32:esp32'
109+
run: pip3 install pyserial
110+
98111
- name: Compile examples
99-
uses: arduino/actions/libraries/compile-examples@master
112+
uses: arduino/compile-sketches@main
100113
with:
101114
platforms: ${{ matrix.platforms }}
102115
fqbn: ${{ matrix.board.fqbn }}
103116
libraries: ${{ env.LIBRARIES }}
104117
size-report-sketch: 'ConnectionHandlerDemo'
105118
enable-size-deltas-report: 'true'
119+
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}
106120

107121
- name: Save memory usage change report as artifact
108122
if: github.event_name == 'pull_request'
109123
uses: actions/upload-artifact@v1
110124
with:
111-
name: 'size-deltas-reports'
112-
path: 'size-deltas-reports'
125+
name: ${{ env.SKETCHES_REPORTS_PATH }}
126+
path: ${{ env.SKETCHES_REPORTS_PATH }}

src/Arduino_ConnectionHandler.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727

2828
ConnectionHandler::ConnectionHandler(bool const keep_alive)
2929
: _keep_alive{keep_alive}
30-
, _current_net_connection_state{NetworkConnectionState::INIT}
3130
, _lastConnectionTickTime{millis()}
31+
, _current_net_connection_state{NetworkConnectionState::INIT}
3232
{
3333

3434
}

0 commit comments

Comments
 (0)