Skip to content

Commit 549aa98

Browse files
Fix CI (#214)
1 parent c31dfa9 commit 549aa98

File tree

3 files changed

+53
-26
lines changed

3 files changed

+53
-26
lines changed

.github/workflows/ci.yml

Lines changed: 49 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -20,45 +20,72 @@ on:
2020

2121
jobs:
2222
arduino:
23-
name: arduino ${{ matrix.platform }}
23+
name: arduino ${{ matrix.name }}
2424
runs-on: ubuntu-latest
2525
strategy:
2626
fail-fast: false
2727
matrix:
28-
platform: [esp8266, esp32]
28+
include:
29+
- name: package_esp32_index.json
30+
core: esp32:esp32
31+
board: esp32:esp32:esp32
32+
index_url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
33+
- name: package_esp32_dev_index.json
34+
core: esp32:esp32
35+
board: esp32:esp32:esp32
36+
index_url: https://espressif.github.io/arduino-esp32/package_esp32_dev_index.json
37+
- name: package_esp8266com_index.json
38+
core: esp8266:esp8266
39+
board: esp8266:esp8266:huzzah
40+
index_url: https://arduino.esp8266.com/stable/package_esp8266com_index.json
2941

3042
steps:
31-
- uses: actions/setup-python@v1
32-
with:
33-
python-version: "3.x"
34-
35-
- uses: actions/checkout@v2
43+
- name: Checkout
44+
uses: actions/checkout@v4
3645

37-
- uses: actions/checkout@v2
46+
- name: Arduino Lint
47+
uses: arduino/arduino-lint-action@v1
3848
with:
39-
repository: ayushsharma82/ci-arduino
40-
path: ci
49+
library-manager: update
4150

42-
- name: pre-install
43-
run: bash ci/actions_install.sh
51+
- name: Install arduino-cli
52+
run: curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=/usr/local/bin sh
4453

45-
- name: Set configuration
46-
run: arduino-cli config set library.enable_unsafe_install true
54+
- name: Update core index
55+
run: arduino-cli core update-index --additional-urls "${{ matrix.index_url }}"
4756

48-
- name: Install AsyncTCP
49-
run: arduino-cli lib install --git-url https://github.com/mathieucarbou/AsyncTCP#v3.1.2
57+
- name: Install core
58+
run: arduino-cli core install --additional-urls "${{ matrix.index_url }}" ${{ matrix.core }}
5059

51-
- name: Install ESPAsyncWebServer
52-
run: arduino-cli lib install --git-url https://github.com/mathieucarbou/ESPAsyncWebServer#v2.10.0
60+
- name: Install AsyncTCP
61+
run: ARDUINO_LIBRARY_ENABLE_UNSAFE_INSTALL=true arduino-cli lib install --git-url https://github.com/mathieucarbou/AsyncTCP#v3.1.4
5362

5463
- name: Install ESPAsyncTCP
55-
run: arduino-cli lib install --git-url https://github.com/mathieucarbou/esphome-ESPAsyncTCP#v2.0.0
64+
run: ARDUINO_LIBRARY_ENABLE_UNSAFE_INSTALL=true arduino-cli lib install --git-url https://github.com/mathieucarbou/esphome-ESPAsyncTCP#v2.0.0
65+
66+
- name: Install ESPAsyncWebServer
67+
run: ARDUINO_LIBRARY_ENABLE_UNSAFE_INSTALL=true arduino-cli lib install --git-url https://github.com/mathieucarbou/ESPAsyncWebServer#v2.10.1
5668

5769
- name: Install ArduinoJson
58-
run: arduino-cli lib install --git-url https://github.com/bblanchon/ArduinoJson#v7.0.4
70+
run: ARDUINO_LIBRARY_ENABLE_UNSAFE_INSTALL=true arduino-cli lib install --git-url https://github.com/bblanchon/ArduinoJson#v7.0.4
71+
72+
- name: Build AccessPoint
73+
run: arduino-cli compile --library . --warnings none -b ${{ matrix.board }} "examples/AccessPoint/AccessPoint.ino"
74+
75+
- name: Build Basic
76+
run: arduino-cli compile --library . --warnings none -b ${{ matrix.board }} "examples/Basic/Basic.ino"
77+
78+
- name: Build Benchmark
79+
run: arduino-cli compile --library . --warnings none -b ${{ matrix.board }} "examples/Benchmark/Benchmark.ino"
80+
81+
- name: Build Chart
82+
run: arduino-cli compile --library . --warnings none -b ${{ matrix.board }} "examples/Chart/Chart.ino"
83+
84+
- name: Build Dynamic
85+
run: arduino-cli compile --library . --warnings none -b ${{ matrix.board }} "examples/Dynamic/Dynamic.ino"
5986

60-
- name: Build Examples
61-
run: python3 ci/build_platform.py ${{ matrix.platform }}
87+
- name: Build Interactive
88+
run: arduino-cli compile --library . --warnings none -b ${{ matrix.board }} "examples/Interactive/Interactive.ino"
6289

6390
platformio:
6491
name: pio ${{ matrix.name }}

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
{
2929
"owner": "mathieucarbou",
3030
"name": "ESP Async WebServer",
31-
"version": "^2.10.0",
31+
"version": "^2.10.1",
3232
"platforms": ["espressif8266", "espressif32"]
3333
}
3434
]

platformio.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ build_flags =
66
-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
77
lib_deps =
88
bblanchon/ArduinoJson @ 7.0.4
9-
mathieucarbou/Async TCP @ ^3.1.2
10-
mathieucarbou/ESP Async WebServer @ 2.10.0
9+
mathieucarbou/Async TCP @ ^3.1.4
10+
mathieucarbou/ESP Async WebServer @ 2.10.1
1111
upload_protocol = esptool
1212
monitor_speed = 115200
1313
monitor_filters = esp32_exception_decoder, log2file
@@ -41,5 +41,5 @@ platform = espressif8266
4141
board = huzzah
4242
lib_deps =
4343
bblanchon/ArduinoJson @ 7.0.4
44-
mathieucarbou/ESP Async WebServer @ 2.10.0
44+
mathieucarbou/ESP Async WebServer @ 2.10.1
4545
esphome/ESPAsyncTCP-esphome @ 2.0.0

0 commit comments

Comments
 (0)