From 18b6e9d5bf11a76c75316b2f15f0cb979f24414f Mon Sep 17 00:00:00 2001 From: Ayush Sharma Date: Mon, 3 Jun 2024 05:48:57 +0530 Subject: [PATCH] fix: remove rp2040 for pio CI --- .github/workflows/ci.yml | 10 ++-------- platformio.ini | 6 ++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index af1a86e..5d594c6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -74,6 +74,7 @@ jobs: run: arduino-cli compile --library . --warnings none -b ${{ matrix.board }} "examples/Demo/Demo.ino" - name: Configure ElegantOTA to Async Mode + if: ${{ matrix.core != 'rp2040:rp2040' }} run: | cd src sed -i 's/ELEGANTOTA_USE_ASYNC_WEBSERVER 0/ELEGANTOTA_USE_ASYNC_WEBSERVER 1/' ElegantOTA.h @@ -117,12 +118,6 @@ jobs: board: huzzah platform: espressif8266 opts: - - name: rp2040|raspberrypi - board: pico - platform: raspberrypi - - name: rp2040|raspberrypi-1 - board: pico - platform: raspberrypi@1.13.0 steps: - uses: actions/checkout@v4 - name: Set up cache @@ -141,5 +136,4 @@ jobs: run: platformio platform install ${{ matrix.platform }} - run: platformio ci "examples/Demo/Demo.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 }} + - run: PLATFORMIO_BUILD_FLAGS="-DELEGANTOTA_USE_ASYNC_WEBSERVER=1" platformio ci "examples/AsyncDemo/AsyncDemo.ino" -l '.' -b ${{ matrix.board }} ${{ matrix.opts }} diff --git a/platformio.ini b/platformio.ini index a113cf3..7876d33 100644 --- a/platformio.ini +++ b/platformio.ini @@ -38,3 +38,9 @@ board = huzzah lib_deps = mathieucarbou/ESP Async WebServer @ 2.10.4 esphome/ESPAsyncTCP-esphome @ 2.0.0 + +[env:pico] +platform = https://github.com/maxgerhardt/platform-raspberrypi.git +board = pico +framework = arduino +board_build.core = earlephilhower \ No newline at end of file