From 9ecfe6bfc5f8ceb67bc10eedeb6d5e7ca3daf6a1 Mon Sep 17 00:00:00 2001 From: per1234 Date: Tue, 12 Jan 2021 19:58:13 -0800 Subject: [PATCH 1/3] 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. --- .github/workflows/compile-examples.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index d448929b9..594788ae4 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -46,7 +46,8 @@ jobs: {"fqbn": "arduino:samd:mkrnb1500", "type": "nb"}, {"fqbn": "arduino:mbed:envie_m4", "type": "mbed"}, {"fqbn": "arduino:mbed:envie_m7", "type": "mbed"}, - {"fqbn": "esp8266:esp8266:huzzah", "type": "esp8266"} + {"fqbn": "esp8266:esp8266:huzzah", "type": "esp8266"}, + {"fqbn": "esp32:esp32:esp32", "type": "esp32"} ] # make board type-specific customizations to the matrix jobs @@ -132,6 +133,15 @@ jobs: source-url: https://arduino.esp8266.com/stable/package_esp8266com_index.json libraries: sketch-paths: + # ESP32 boards + - board: + type: "esp32" + platforms: | + # Install ESP32 platform via Boards Manager + - name: esp32:esp32 + source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json + libraries: + sketch-paths: steps: - name: Checkout @@ -162,6 +172,10 @@ jobs: run: | mv "${{ env.ARDUINOCORE_API_STAGING_PATH }}/api" "${{ env.ARDUINOCORE_MBED_STAGING_PATH }}/cores/arduino" + - name: Install ESP32 platform dependencies + if: matrix.board.type == 'esp32' + run: pip3 install pyserial + - name: Compile examples uses: arduino/compile-sketches@main with: From 4cb330f4ff2e3803d7d8ba2f141ecbccf96f743f Mon Sep 17 00:00:00 2001 From: Alexander Entinger Date: Wed, 13 Jan 2021 11:04:53 +0100 Subject: [PATCH 2/3] Adding missing constant LED_BUILTIN to satisfy CI build. --- examples/ArduinoIoTCloud-Basic/ArduinoIoTCloud-Basic.ino | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/ArduinoIoTCloud-Basic/ArduinoIoTCloud-Basic.ino b/examples/ArduinoIoTCloud-Basic/ArduinoIoTCloud-Basic.ino index e5a8e4c86..51d2d97be 100644 --- a/examples/ArduinoIoTCloud-Basic/ArduinoIoTCloud-Basic.ino +++ b/examples/ArduinoIoTCloud-Basic/ArduinoIoTCloud-Basic.ino @@ -22,6 +22,10 @@ #include "arduino_secrets.h" #include "thingProperties.h" +#if defined(ESP32) +static int const LED_BUILTIN = 2; +#endif + void setup() { /* Initialize serial and wait up to 5 seconds for port to open */ Serial.begin(9600); From 70c0b64f4ea28d72f6e95129ddc3c8061c7ca70f Mon Sep 17 00:00:00 2001 From: Alexander Entinger Date: Wed, 13 Jan 2021 11:15:00 +0100 Subject: [PATCH 3/3] Disabling warning -Wreturn-type to satisfy CI (This ain't correct so the reason for this behaviour shall be investigated in the near future). --- src/cbor/lib/tinycbor/src/open_memstream.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cbor/lib/tinycbor/src/open_memstream.c b/src/cbor/lib/tinycbor/src/open_memstream.c index 830a67973..e535c9c79 100644 --- a/src/cbor/lib/tinycbor/src/open_memstream.c +++ b/src/cbor/lib/tinycbor/src/open_memstream.c @@ -41,6 +41,7 @@ typedef size_t LenType; #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wpedantic" +#pragma GCC diagnostic ignored "-Wreturn-type" struct Buffer {