From 8b695d402ef748fad99be442c491058297534760 Mon Sep 17 00:00:00 2001 From: MathewHDYT <48954742+MathewHDYT@users.noreply.github.com> Date: Tue, 26 Sep 2023 22:00:36 +0200 Subject: [PATCH] Add workflow to build for ESP-IDF --- .github/workflows/espidf-compile.yml | 42 +++++++++++++++++++ README.md | 1 + ...0015-espressif_esp32_process_OTA_MQTT.cpp} | 0 3 files changed, 43 insertions(+) create mode 100644 .github/workflows/espidf-compile.yml rename examples/0015-espressif_esp32_process_OTA_MQTT/{0015-espressif_esp32_process_OTA_MQTT.ino => 0015-espressif_esp32_process_OTA_MQTT.cpp} (100%) diff --git a/.github/workflows/espidf-compile.yml b/.github/workflows/espidf-compile.yml new file mode 100644 index 00000000..14212cad --- /dev/null +++ b/.github/workflows/espidf-compile.yml @@ -0,0 +1,42 @@ +name: Compile ESP-IDF Sketches + +on: + pull_request: + push: + workflow_dispatch: + repository_dispatch: + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout repo + uses: actions/checkout@v2 + with: + submodules: 'recursive' + - name: Build send data example on v4.4 + uses: espressif/esp-idf-ci-action@v1 + with: + esp_idf_version: v4.4 + target: esp32 + path: 'examples/0014-espressif_esp32_send_data' + - name: Build process OTA over MQTT example on v4.4 + uses: espressif/esp-idf-ci-action@v1 + with: + esp_idf_version: v4.4 + target: esp32 + path: 'examples/0015-espressif_esp32_process_OTA_MQTT' + - name: Build send data example on v5.1 + uses: espressif/esp-idf-ci-action@v1 + with: + esp_idf_version: v5.1 + target: esp32 + path: 'examples/0014-espressif_esp32_send_data' + - name: Build process OTA over MQTT example on v5.1 + uses: espressif/esp-idf-ci-action@v1 + with: + esp_idf_version: v5.1 + target: esp32 + path: 'examples/0015-espressif_esp32_process_OTA_MQTT' \ No newline at end of file diff --git a/README.md b/README.md index 30864b72..b287a9e2 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ [![GitHub release](https://img.shields.io/github/release/thingsboard/thingsboard-arduino-sdk/all.svg?style=flat-square)](https://github.com/thingsboard/thingsboard-arduino-sdk/releases/) [![GitHub downloads](https://img.shields.io/github/downloads/thingsboard/thingsboard-arduino-sdk/all.svg?style=flat-square)](https://github.com/thingsboard/thingsboard-arduino-sdk/releases/) [![Arduino actions status](https://github.com/thingsboard/thingsboard-arduino-sdk/actions/workflows/arduino-compile.yml/badge.svg)](https://github.com/thingsboard/thingsboard-arduino-sdk/actions/workflows/arduino-compile.yml) +[![Espressif IDF actions status](https://github.com/thingsboard/thingsboard-arduino-sdk/actions/workflows/espidf-compile.yml/badge.svg)](https://github.com/thingsboard/thingsboard-arduino-sdk/actions/workflows/espidf-compile.yml) [![ESP32 actions status](https://github.com/thingsboard/thingsboard-arduino-sdk/actions/workflows/esp32-compile.yml/badge.svg)](https://github.com/thingsboard/thingsboard-arduino-sdk/actions/workflows/esp32-compile.yml) [![ESP8266 actions status](https://github.com/thingsboard/thingsboard-arduino-sdk/actions/workflows/esp8266-compile.yml/badge.svg)](https://github.com/thingsboard/thingsboard-arduino-sdk/actions/workflows/esp8266-compile.yml) ![GitHub stars](https://img.shields.io/github/stars/thingsboard/thingsboard-arduino-sdk?style=social) diff --git a/examples/0015-espressif_esp32_process_OTA_MQTT/0015-espressif_esp32_process_OTA_MQTT.ino b/examples/0015-espressif_esp32_process_OTA_MQTT/0015-espressif_esp32_process_OTA_MQTT.cpp similarity index 100% rename from examples/0015-espressif_esp32_process_OTA_MQTT/0015-espressif_esp32_process_OTA_MQTT.ino rename to examples/0015-espressif_esp32_process_OTA_MQTT/0015-espressif_esp32_process_OTA_MQTT.cpp