Skip to content

Commit 67df044

Browse files
Merge pull request #92 from ESP32Async/ci
Fix CI
2 parents 4841069 + c979d1a commit 67df044

File tree

3 files changed

+12
-75
lines changed

3 files changed

+12
-75
lines changed

.github/workflows/build-arduino.yml

Lines changed: 9 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -108,40 +108,16 @@ jobs:
108108
arduino-cli compile --library . --warnings none -b esp8266:esp8266:huzzah "examples/$i/$i.ino"
109109
done
110110
111-
arduino-rp2040:
112-
name: Arduino RP2040
111+
arduino-rpi:
112+
name: Arduino RPI
113113
runs-on: ubuntu-latest
114-
steps:
115-
- name: Install arduino-cli
116-
run: curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=/usr/local/bin sh
117-
118-
- name: Update core index
119-
run: arduino-cli core update-index --additional-urls https://github.com/earlephilhower/arduino-pico/releases/download/4.4.3/package_rp2040_index.json
120-
121-
- name: Install core
122-
run: arduino-cli core install --additional-urls https://github.com/earlephilhower/arduino-pico/releases/download/4.4.3/package_rp2040_index.json rp2040:rp2040
114+
strategy:
115+
fail-fast: false
116+
matrix:
117+
board:
118+
- rpipicow
119+
- rpipico2w
123120

124-
- name: Install ArduinoJson
125-
run: arduino-cli lib install ArduinoJson
126-
127-
- name: Install RPAsyncTCP
128-
run: ARDUINO_LIBRARY_ENABLE_UNSAFE_INSTALL=true arduino-cli lib install --git-url https://github.com/ayushsharma82/RPAsyncTCP#v1.3.0
129-
130-
- name: Checkout
131-
uses: actions/checkout@v4
132-
133-
- name: Build Examples
134-
run: |
135-
for i in `ls examples`; do
136-
echo "============================================================="
137-
echo "Building examples/$i..."
138-
echo "============================================================="
139-
arduino-cli compile --library . --warnings none -b rp2040:rp2040:rpipicow "examples/$i/$i.ino"
140-
done
141-
142-
arduino-rp2350:
143-
name: Arduino RP2350
144-
runs-on: ubuntu-latest
145121
steps:
146122
- name: Install arduino-cli
147123
run: curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=/usr/local/bin sh
@@ -167,5 +143,5 @@ jobs:
167143
echo "============================================================="
168144
echo "Building examples/$i..."
169145
echo "============================================================="
170-
arduino-cli compile --library . --warnings none -b rp2040:rp2040:rpipico2w "examples/$i/$i.ino"
146+
arduino-cli compile --library . --warnings none -b rp2040:rp2040:${{ matrix.board }} "examples/$i/$i.ino"
171147
done

.github/workflows/build-pioarduino.yml

Lines changed: 2 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -185,53 +185,14 @@ jobs:
185185
PLATFORMIO_SRC_DIR=examples/$i PIO_BOARD=${{ matrix.board }} pio run -e ci-esp8266
186186
done
187187
188-
platformio-rp2040:
189-
name: PIO RP2040
188+
platformio-rpi:
189+
name: PIO RPI
190190
runs-on: ubuntu-latest
191191
strategy:
192192
fail-fast: false
193193
matrix:
194194
board:
195195
- rpipicow
196-
197-
steps:
198-
- name: Checkout
199-
uses: actions/checkout@v4
200-
201-
- name: Cache PlatformIO
202-
uses: actions/cache@v4
203-
with:
204-
key: ${{ runner.os }}-pio
205-
path: |
206-
~/.cache/pip
207-
~/.platformio
208-
209-
- name: Python
210-
uses: actions/setup-python@v5
211-
with:
212-
python-version: "3.x"
213-
214-
- name: Install PIO
215-
run: |
216-
python -m pip install --upgrade pip
217-
pip install --upgrade platformio
218-
219-
- name: Build Examples
220-
run: |
221-
for i in `ls examples`; do
222-
echo "============================================================="
223-
echo "Building examples/$i..."
224-
echo "============================================================="
225-
PLATFORMIO_SRC_DIR=examples/$i PIO_BOARD=${{ matrix.board }} pio run -e ci-raspberrypi
226-
done
227-
228-
platformio-rp2350:
229-
name: PIO RP2350
230-
runs-on: ubuntu-latest
231-
strategy:
232-
fail-fast: false
233-
matrix:
234-
board:
235196
- rpipico2w
236197

237198
steps:

platformio.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ lib_deps =
131131
ESP32Async/ESPAsyncTCP @ 2.0.0
132132

133133
[env:ci-raspberrypi]
134-
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
134+
platform = https://github.com/maxgerhardt/platform-raspberrypi.git#4d1acd7caac8c055c05f5ac6c68fa5f079730947
135135
board = ${sysenv.PIO_BOARD}
136136
board_build.core = earlephilhower
137137
lib_deps =

0 commit comments

Comments
 (0)