Skip to content

Commit

Permalink
Merge pull request #73 from arduino-libraries/esp32-compile-examples
Browse files Browse the repository at this point in the history
Add esp32 platform to compile examples github workflow
  • Loading branch information
pennam authored Jul 14, 2022
2 parents 8db80e9 + 30ec7e9 commit bdb8b50
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/compile-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ jobs:
- name: esp8266:esp8266
source-url: https://arduino.esp8266.com/stable/package_esp8266com_index.json
libraries: ""
- fqbn: "esp32:esp32:esp32"
platforms: |
- name: esp32:esp32
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
libraries: ""

steps:
- name: Checkout repository
Expand Down
2 changes: 2 additions & 0 deletions examples/WiFiAdvancedCallback/WiFiAdvancedCallback.ino
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
#include <WiFi101.h>
#elif defined(ARDUINO_ARCH_ESP8266)
#include <ESP8266WiFi.h>
#elif defined(ARDUINO_ARCH_ESP32)
#include <WiFi.h>
#endif

#include "arduino_secrets.h"
Expand Down
2 changes: 2 additions & 0 deletions examples/WiFiEcho/WiFiEcho.ino
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#include <WiFi101.h>
#elif defined(ARDUINO_ARCH_ESP8266)
#include <ESP8266WiFi.h>
#elif defined(ARDUINO_ARCH_ESP32)
#include <WiFi.h>
#endif

#include "arduino_secrets.h"
Expand Down
2 changes: 2 additions & 0 deletions examples/WiFiEchoCallback/WiFiEchoCallback.ino
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
#include <WiFi101.h>
#elif defined(ARDUINO_ARCH_ESP8266)
#include <ESP8266WiFi.h>
#elif defined(ARDUINO_ARCH_ESP32)
#include <WiFi.h>
#endif

#include "arduino_secrets.h"
Expand Down
2 changes: 2 additions & 0 deletions examples/WiFiSimpleReceive/WiFiSimpleReceive.ino
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#include <WiFi101.h>
#elif defined(ARDUINO_ARCH_ESP8266)
#include <ESP8266WiFi.h>
#elif defined(ARDUINO_ARCH_ESP32)
#include <WiFi.h>
#endif

#include "arduino_secrets.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#include <WiFi101.h>
#elif defined(ARDUINO_ARCH_ESP8266)
#include <ESP8266WiFi.h>
#elif defined(ARDUINO_ARCH_ESP32)
#include <WiFi.h>
#endif

#include "arduino_secrets.h"
Expand Down
2 changes: 2 additions & 0 deletions examples/WiFiSimpleSender/WiFiSimpleSender.ino
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#include <WiFi101.h>
#elif defined(ARDUINO_ARCH_ESP8266)
#include <ESP8266WiFi.h>
#elif defined(ARDUINO_ARCH_ESP32)
#include <WiFi.h>
#endif

#include "arduino_secrets.h"
Expand Down

0 comments on commit bdb8b50

Please sign in to comment.