Skip to content

Commit

Permalink
Merge pull request #473 from Hieromon/enhance/v134
Browse files Browse the repository at this point in the history
Enhance/v134
  • Loading branch information
Hieromon authored Mar 5, 2022
2 parents 4bef741 + 48906d2 commit 4a81f4d
Show file tree
Hide file tree
Showing 78 changed files with 1,138 additions and 670 deletions.
175 changes: 175 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
# AutoConnect library examples build CI

name: build

on:
pull_request:
branches:
- 'master'
types:
- opened
release:
types:
- published
repository_dispatch:
workflow_dispatch:

env:
LIBRARIES: |
- source-path: ./
- name: PageBuilder
- name: PubSubClient
SKETCHES_PATH: examples

SKETCHES: |
ConfigIP
Credential
Elements
FileUpload
HandleClient
HandlePortal
HandlePortalEX
HelloWorld
mqttRSSI
mqttRSSI_FS
OTAUpdate
Simple
Update
WebUpdate
SKETCHES_WO_JSON: |
mqttRSSI_NA
SKETCHES_ESP8266: |
EEPROM
FSBrowser
SKETCHES_ESP32: |
CreditMigrate
FSBrowser32
WebCamServer
SKETCHES_REPORTS_PATH: sketches-reports

jobs:
build_with_ArduinoJson:
name: ${{ matrix.board.fqbn }} ${{ matrix.library.dependency }}
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
board:
- fqbn: "esp8266:esp8266:generic"
platform-name: esp8266:esp8266
- fqbn: "esp32:esp32:esp32"
platform-name: esp32:esp32

library:
- name: ArduinoJsonV6
dependency: |
- name: ArduinoJson
- name: ArduinoJsonV5
dependency: |
- name: ArduinoJson
version: 5.13.5
include:
- board:
platform-name: esp8266:esp8266
platforms: |
- name: esp8266:esp8266
source-url: https://arduino.esp8266.com/stable/package_esp8266com_index.json
- board:
platform-name: esp32:esp32
platforms: |
- name: esp32:esp32
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Append sketches depending on ESP8266
if: matrix.board.platform-name == 'esp8266:esp8266'
run: |
echo "BUILD_SKETCHES<<EOF" >> $GITHUB_ENV
echo "${{ env.SKETCHES }}${{ env.SKETCHES_WO_JSON }}${{ env.SKETCHES_ESP8266 }}" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Append sketches depending on ESP32
if: matrix.board.platform-name == 'esp32:esp32'
run: |
echo "BUILD_SKETCHES<<EOF" >> $GITHUB_ENV
echo "${{ env.SKETCHES }}${{ env.SKETCHES_WO_JSON }}${{ env.SKETCHES_ESP32 }}" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Create sketches list
run: |
echo "BUILD_SKETCHES_LIST<<EOF" >> $GITHUB_ENV
echo -n "${{ env.BUILD_SKETCHES }}" | sed -e 's/^/- ${{ env.SKETCHES_PATH }}\//' >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Compile example sketches that require ArduinoJson
uses: arduino/compile-sketches@v1
with:
fqbn: ${{ matrix.board.fqbn }}
platforms: ${{ matrix.platforms }}
libraries: |
${{ env.LIBRARIES }}
${{ matrix.library.dependency }}
enable-deltas-report: true
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}
sketch-paths: |
${{ env.BUILD_SKETCHES_LIST }}
build_wo_ArduinoJson:
name: ${{ matrix.board.fqbn }}
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
board:
- fqbn: "esp8266:esp8266:generic"
platform-name: esp8266:esp8266
- fqbn: "esp32:esp32:esp32"
platform-name: esp32:esp32

include:
- board:
platform-name: esp8266:esp8266
platforms: |
- name: esp8266:esp8266
source-url: https://arduino.esp8266.com/stable/package_esp8266com_index.json
- board:
platform-name: esp32:esp32
platforms: |
- name: esp32:esp32
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Create sketches list with precluded ArduinoJson
run: |
echo "BUILD_SKETCHES_LIST_WO_JSON<<EOF" >> $GITHUB_ENV
echo -n "${{ env.SKETCHES_WO_JSON }}" | sed -e 's/^/- ${{ env.SKETCHES_PATH }}\//' >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Compile example sketches w/o ArduinoJson
uses: arduino/compile-sketches@v1
with:
fqbn: ${{ matrix.board.fqbn }}
platforms: ${{ matrix.platforms }}
cli-compile-flags: |
- --build-property
- build.extra_flags=-DAUTOCONNECT_NOUSE_JSON
libraries: |
${{ env.LIBRARIES }}
enable-deltas-report: true
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}
sketch-paths: |
${{ env.BUILD_SKETCHES_LIST_WO_JSON }}
51 changes: 0 additions & 51 deletions .travis.yml

This file was deleted.

12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![GitHub release](https://img.shields.io/github/v/release/Hieromon/AutoConnect)](https://github.com/Hieromon/AutoConnect/releases)
[![arduino-library-badge](https://www.ardu-badge.com/badge/AutoConnect.svg?)](https://www.ardu-badge.com/AutoConnect)
[![Build Status](https://app.travis-ci.com/Hieromon/AutoConnect.svg?branch=master)](https://app.travis-ci.com/Hieromon/AutoConnect)
[![Build Status](https://github.com/Hieromon/AutoConnect/actions/workflows/build.yml/badge.svg)](https://github.com/Hieromon/AutoConnect/actions/workflows/build.yml)
[![License](https://img.shields.io/github/license/Hieromon/AutoConnect)](https://github.com/Hieromon/AutoConnect/blob/master/LICENSE)

An Arduino library for ESP8266/ESP32 WLAN configuration at run time with web interface.
Expand Down Expand Up @@ -102,6 +102,16 @@ Full documentation is available on https://Hieromon.github.io/AutoConnect, some

## Change log

### [1.3.4] Mar. 02, 2022
- Supports [LittleFS_esp32](https://github.com/lorol/LITTLEFS) legacy library with ESP32 Arduino core 1.0.6 or less.
- Added enablement of credentials removal function with Open SSIDs menu. (Discussions #433)
- Fixed AutoConnectOTA crashing if there is no OTA partition.
- Fixed AutoConnectUpdate crashing if there is no OTA partition.
- Migrate the CI platform to GitHub actions.

##### Breaking changes:
- Authentication has been applied to **RESET** menu. This avoids resetting modules in an unauthenticated state by direct access to `/_ac/reset`.

### [1.3.3] Jan. 25, 2022
- Fixed the missing initialization of MQTT parameter settings of mqttRSSI.ino example sketch.
- Reverted the MQTT API endpoint of Thingspeak.com in the mqttRSSI example sketches.
Expand Down
Loading

0 comments on commit 4a81f4d

Please sign in to comment.