Skip to content

Commit

Permalink
fix: added raspberry to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushsharma82 committed Jun 3, 2024
1 parent 1e68a55 commit bc43e14
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ jobs:
core: esp8266:esp8266
board: esp8266:esp8266:huzzah
index_url: https://arduino.esp8266.com/stable/package_esp8266com_index.json
- name: package_rp2040_index.json
core: rp2040:rp2040
board: rp2040:rp2040:rpipicow
index_url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json

steps:
- name: Checkout
Expand All @@ -64,7 +68,7 @@ jobs:
run: ARDUINO_LIBRARY_ENABLE_UNSAFE_INSTALL=true arduino-cli lib install --git-url https://github.com/mathieucarbou/esphome-ESPAsyncTCP#v2.0.0

- name: Install ESPAsyncWebServer
run: ARDUINO_LIBRARY_ENABLE_UNSAFE_INSTALL=true arduino-cli lib install --git-url https://github.com/mathieucarbou/ESPAsyncWebServer#v2.10.1
run: ARDUINO_LIBRARY_ENABLE_UNSAFE_INSTALL=true arduino-cli lib install --git-url https://github.com/mathieucarbou/ESPAsyncWebServer#v2.10.4

- name: Build Demo
run: arduino-cli compile --library . --warnings none -b ${{ matrix.board }} "examples/Demo/Demo.ino"
Expand All @@ -75,6 +79,7 @@ jobs:
sed -i 's/ELEGANTOTA_USE_ASYNC_WEBSERVER 0/ELEGANTOTA_USE_ASYNC_WEBSERVER 1/' ElegantOTA.h
- name: Build AsyncDemo
if: ${{ matrix.core != 'rp2040:rp2040' }}
run: arduino-cli compile --library . --warnings none -b ${{ matrix.board }} "examples/AsyncDemo/AsyncDemo.ino"

platformio:
Expand Down Expand Up @@ -112,6 +117,12 @@ jobs:
board: huzzah
platform: espressif8266
opts:
- name: rp2040|raspberrypi
board: pico
platform: raspberrypi
- name: rp2040|raspberrypi-1
board: pico
platform: [email protected]
steps:
- uses: actions/checkout@v4
- name: Set up cache
Expand All @@ -124,8 +135,11 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- run: pip install platformio
- run: platformio platform install ${{ matrix.platform }}
- name: Install PlatformIO
run: pip install platformio
- name: Install Platform
run: platformio platform install ${{ matrix.platform }}

- run: platformio ci "examples/Demo/Demo.ino" -l '.' -b ${{ matrix.board }} ${{ matrix.opts }}
- run: PLATFORMIO_BUILD_FLAGS="-DELEGANTOTA_USE_ASYNC_WEBSERVER=1" platformio ci "examples/AsyncDemo/AsyncDemo.ino" -l '.' -b ${{ matrix.board }} ${{ matrix.opts }}
- if: ${{ !contains(matrix.platform, 'raspberrypi') }}
run: PLATFORMIO_BUILD_FLAGS="-DELEGANTOTA_USE_ASYNC_WEBSERVER=1" platformio ci "examples/AsyncDemo/AsyncDemo.ino" -l '.' -b ${{ matrix.board }} ${{ matrix.opts }}
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
{
"owner": "mathieucarbou",
"name": "ESP Async WebServer",
"version": "^2.10.1",
"version": "^2.10.4",
"platforms": ["espressif8266", "espressif32"]
}
],
Expand Down
4 changes: 2 additions & 2 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ build_flags =
-D ELEGANTOTA_USE_ASYNC_WEBSERVER=1
lib_deps =
mathieucarbou/Async TCP @ ^3.1.4
mathieucarbou/ESP Async WebServer @ 2.10.1
mathieucarbou/ESP Async WebServer @ 2.10.4
upload_protocol = esptool
monitor_speed = 115200
monitor_filters = esp32_exception_decoder, log2file
Expand Down Expand Up @@ -36,5 +36,5 @@ board = esp32-s3-devkitc-1
platform = espressif8266
board = huzzah
lib_deps =
mathieucarbou/ESP Async WebServer @ 2.10.1
mathieucarbou/ESP Async WebServer @ 2.10.4
esphome/ESPAsyncTCP-esphome @ 2.0.0

0 comments on commit bc43e14

Please sign in to comment.