Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance/v134 #473

Merged
merged 22 commits into from
Mar 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
64d6c9f
Describes how to select the correct partition to enable OTA.
Hieromon Feb 8, 2022
d4e3f43
Add the ability to delete a credential
Hieromon Feb 9, 2022
b8d1d3b
Adds a text of credential deletion failure
Hieromon Feb 9, 2022
f2c47d4
Apply authentication to /_ac/reset
Hieromon Feb 16, 2022
9b5d784
Deactivate the delete credentials function when the OPEN SSIDs menu i…
Hieromon Feb 16, 2022
6632ab5
Documentation of the credentials removal function
Hieromon Feb 16, 2022
b94a28f
Merge pull request #464 from Hieromon/enhance/delcre
Hieromon Feb 16, 2022
597562e
Migrate Build CI to GitHub Actions
Hieromon Feb 21, 2022
d842785
Separate a job excluded ArduinoJson
Hieromon Feb 24, 2022
d4180a8
Exclude AutoConnect itself from the dependency
Hieromon Feb 24, 2022
b8145db
Merge pull request #469 from Hieromon/CI
Hieromon Feb 24, 2022
d8ee5b9
Changes the build status badge to the actions
Hieromon Feb 24, 2022
60169e6
Drop Travis CI
Hieromon Feb 24, 2022
de6d3aa
Fix an unused warning
Hieromon Feb 24, 2022
cbf80cb
Change a text of the build status badge
Hieromon Feb 24, 2022
b87f82c
Revert "Change a text of the build status badge"
Hieromon Feb 24, 2022
aef7620
Change log for v1.3.4
Hieromon Feb 24, 2022
5fda87d
Bump Version
Hieromon Feb 27, 2022
ae41971
Add mqttRSSI_NA to jobs for ArduinoJson dependency
Hieromon Feb 28, 2022
8724380
Supports LittleFS_esp32 legacy library
Hieromon Mar 2, 2022
df5d498
Match compatible version to PageBuilder upstream
Hieromon Mar 2, 2022
48906d2
Deploy for v1.3.4
Hieromon Mar 5, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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