Revert ESP-MQTT (#508)
* Revert ESP-MQTT * Revert ESP-MQTT * Update sdkconfig.defaults
This commit is contained in:
9
lib/espMqttClient/.github/workflows/arduino-lint.yml
vendored
Normal file
9
lib/espMqttClient/.github/workflows/arduino-lint.yml
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
name: Arduino Lint
|
||||
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: arduino/arduino-lint-action@v1
|
||||
62
lib/espMqttClient/.github/workflows/build_arduino-ide.yml
vendored
Normal file
62
lib/espMqttClient/.github/workflows/build_arduino-ide.yml
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
name: Build with Arduino IDE
|
||||
on:
|
||||
- push
|
||||
- pull_request
|
||||
|
||||
jobs:
|
||||
build-for-esp8266:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
fqbn:
|
||||
- esp8266:esp8266:generic
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: arduino/compile-sketches@v1
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
fqbn: ${{ matrix.fqbn }}
|
||||
enable-deltas-report: true
|
||||
platforms: |
|
||||
- name: esp8266:esp8266
|
||||
source-url: https://arduino.esp8266.com/stable/package_esp8266com_index.json
|
||||
sketch-paths: |
|
||||
- examples/largepayload-esp8266
|
||||
- examples/simple-esp8266
|
||||
- examples/simpleAsync-esp8266
|
||||
- examples/tls-esp8266
|
||||
libraries: |
|
||||
- name: espMqttClient
|
||||
source-path: ./
|
||||
- name: ESPAsyncTCP
|
||||
source-url: https://github.com/me-no-dev/ESPAsyncTCP.git
|
||||
|
||||
build-for-esp32:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
fqbn:
|
||||
- esp32:esp32:esp32
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: arduino/compile-sketches@v1
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
fqbn: ${{ matrix.fqbn }}
|
||||
enable-deltas-report: true
|
||||
platforms: |
|
||||
- name: esp32:esp32
|
||||
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
|
||||
sketch-paths: |
|
||||
- examples/simple-esp32
|
||||
- examples/simpleAsync-esp32
|
||||
- examples/tls-esp32
|
||||
libraries: |
|
||||
- name: espMqttClient
|
||||
source-path: ./
|
||||
- name: AsyncTCP
|
||||
source-url: https://github.com/me-no-dev/AsyncTCP.git
|
||||
78
lib/espMqttClient/.github/workflows/build_platformio.yml
vendored
Normal file
78
lib/espMqttClient/.github/workflows/build_platformio.yml
vendored
Normal file
@@ -0,0 +1,78 @@
|
||||
name: Build with Platformio
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build-for-esp8266:
|
||||
runs-on: ubuntu-latest
|
||||
container: ghcr.io/bertmelis/pio-test-container
|
||||
strategy:
|
||||
matrix:
|
||||
example: [
|
||||
examples/largepayload-esp8266/largepayload-esp8266.ino,
|
||||
examples/ota-esp8266/ota-esp8266.ino,
|
||||
examples/simple-esp8266/simple-esp8266.ino,
|
||||
examples/simpleAsync-esp8266/simpleAsync-esp8266.ino,
|
||||
examples/tls-esp8266/tls-esp8266.ino
|
||||
]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.cache/pip
|
||||
~/.platformio/.cache
|
||||
key: ${{ runner.os }}-pio
|
||||
- name: Download external libraries
|
||||
run: pio pkg install --global --library me-no-dev/ESPAsyncTCP
|
||||
- name: Build PlatformIO examples
|
||||
run: pio ci --lib="." --board=d1_mini
|
||||
env:
|
||||
PLATFORMIO_CI_SRC: ${{ matrix.example }}
|
||||
|
||||
build-for-esp32:
|
||||
runs-on: ubuntu-latest
|
||||
container: ghcr.io/bertmelis/pio-test-container
|
||||
strategy:
|
||||
matrix:
|
||||
example: [
|
||||
examples/notask-esp32/notask-esp32.ino,
|
||||
examples/simple-esp32/simple-esp32.ino,
|
||||
examples/simpleAsync-esp32/simpleAsync-esp32.ino,
|
||||
examples/tls-esp32/tls-esp32.ino
|
||||
]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.cache/pip
|
||||
~/.platformio/.cache
|
||||
key: ${{ runner.os }}-pio
|
||||
- name: Download external libraries
|
||||
run: pio pkg install --global --library me-no-dev/AsyncTCP
|
||||
- name: Build PlatformIO examples
|
||||
run: pio ci --lib="." --board=lolin32
|
||||
env:
|
||||
PLATFORMIO_CI_SRC: ${{ matrix.example }}
|
||||
|
||||
build-for-linux:
|
||||
runs-on: ubuntu-latest
|
||||
container: ghcr.io/bertmelis/pio-test-container
|
||||
strategy:
|
||||
matrix:
|
||||
example: [
|
||||
examples/simple-linux/main.cpp
|
||||
]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.cache/pip
|
||||
~/.platformio/.cache
|
||||
key: ${{ runner.os }}-pio
|
||||
- name: Build PlatformIO examples
|
||||
run: pio ci --lib="." --project-conf="./examples/simple-linux/platformio.ini"
|
||||
env:
|
||||
PLATFORMIO_CI_SRC: ${{ matrix.example }}
|
||||
13
lib/espMqttClient/.github/workflows/cppcheck.yml
vendored
Normal file
13
lib/espMqttClient/.github/workflows/cppcheck.yml
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
name: Cppcheck
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
container: ghcr.io/bertmelis/pio-test-container
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Cppcheck
|
||||
run: |
|
||||
pio check --fail-on-defect=medium --fail-on-defect=high --flags "--inline-suppr --enable=warning --enable=style --enable=performance --suppress=unusedFunction --suppress=preprocessorErrorDirective" --skip-packages
|
||||
22
lib/espMqttClient/.github/workflows/cpplint.yml
vendored
Normal file
22
lib/espMqttClient/.github/workflows/cpplint.yml
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
name: cpplint
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install cpplint
|
||||
- name: Linting
|
||||
run: |
|
||||
cpplint --repository=. --recursive --filter=-whitespace/line_length,-build/include ./src
|
||||
26
lib/espMqttClient/.github/workflows/test_platformio.yml
vendored
Normal file
26
lib/espMqttClient/.github/workflows/test_platformio.yml
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
name: Test with Platformio
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
container: ghcr.io/bertmelis/pio-test-container
|
||||
|
||||
services:
|
||||
mqtt:
|
||||
image: eclipse-mosquitto:2.0
|
||||
volumes:
|
||||
- ${{ github.workspace }}/.github/mosquitto:/mosquitto/config
|
||||
options: --name mqtt
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Restart MQTT
|
||||
# Restart MQTT after volumes have been checked out
|
||||
uses: docker://docker
|
||||
with:
|
||||
args: docker restart mqtt
|
||||
- name: Test
|
||||
run: |
|
||||
pio test -e native -v
|
||||
Reference in New Issue
Block a user