Skip to content

Commit d04bf5b

Browse files
authored
Merge pull request #217 from per1234/esp32-ci
Add ESP32 board to "Compile Examples" CI workflow
2 parents 15ae885 + 70c0b64 commit d04bf5b

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-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://github.com/raw/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:

examples/ArduinoIoTCloud-Basic/ArduinoIoTCloud-Basic.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
#include "arduino_secrets.h"
2323
#include "thingProperties.h"
2424

25+
#if defined(ESP32)
26+
static int const LED_BUILTIN = 2;
27+
#endif
28+
2529
void setup() {
2630
/* Initialize serial and wait up to 5 seconds for port to open */
2731
Serial.begin(9600);

src/cbor/lib/tinycbor/src/open_memstream.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ typedef size_t LenType;
4141

4242
#pragma GCC diagnostic push
4343
#pragma GCC diagnostic ignored "-Wpedantic"
44+
#pragma GCC diagnostic ignored "-Wreturn-type"
4445

4546
struct Buffer
4647
{

0 commit comments

Comments
 (0)