Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Commit a63694b

Browse files
committed
update CI
1 parent 2041c11 commit a63694b

File tree

3 files changed

+107
-77
lines changed

3 files changed

+107
-77
lines changed

.github/workflows/ci.yml

+60-41
Original file line numberDiff line numberDiff line change
@@ -77,58 +77,77 @@ jobs:
7777
- name: Build StreamFiles
7878
run: arduino-cli compile --library . --warnings none -b ${{ matrix.board }} "examples/StreamFiles/StreamFiles.ino"
7979

80-
pio_envs:
81-
name: Get PlatformIO Envs
82-
runs-on: ubuntu-latest
83-
steps:
84-
- uses: actions/checkout@v4
85-
- uses: actions/cache@v4
86-
with:
87-
key: pip
88-
path: ~/.cache/pip
89-
- uses: actions/setup-python@v5
90-
with:
91-
python-version: "3.x"
92-
- name: Install PlatformIO
93-
run: |
94-
python -m pip install --upgrade pip
95-
pip install --upgrade platformio
96-
- name: Get Envs
97-
id: envs
98-
run: |
99-
echo "pio_default_envs=$(pio project config --json-output | jq -cr '[ .[][0] | select(startswith("env:") and (endswith("-debug")|not)) | .[4:] ]')" >> $GITHUB_OUTPUT
100-
101-
outputs:
102-
pio_default_envs: ${{ steps.envs.outputs.pio_default_envs }}
103-
10480
platformio:
105-
name: "pio:${{ matrix.environment }}"
106-
needs: [pio_envs]
81+
name: "pio:${{ matrix.env }}:${{ matrix.board }}"
10782
runs-on: ubuntu-latest
10883
strategy:
109-
fail-fast: false
11084
matrix:
111-
environment: ${{ fromJSON(needs.pio_envs.outputs.pio_default_envs) }}
112-
85+
include:
86+
- env: ci-arduino-2
87+
board: esp32dev
88+
- env: ci-arduino-2
89+
board: esp32-s2-saola-1
90+
- env: ci-arduino-2
91+
board: esp32-s3-devkitc-1
92+
- env: ci-arduino-2
93+
board: esp32-c3-devkitc-02
94+
95+
- env: ci-arduino-3
96+
board: esp32dev
97+
- env: ci-arduino-3
98+
board: esp32-s2-saola-1
99+
- env: ci-arduino-3
100+
board: esp32-s3-devkitc-1
101+
- env: ci-arduino-3
102+
board: esp32-c3-devkitc-02
103+
- env: ci-arduino-3
104+
board: esp32-c6-devkitc-1
105+
- env: ci-arduino-3
106+
board: esp32-h2-devkitm-1
107+
108+
- env: ci-arduino-310rc1
109+
board: esp32dev
110+
- env: ci-arduino-310rc1
111+
board: esp32-s2-saola-1
112+
- env: ci-arduino-310rc1
113+
board: esp32-s3-devkitc-1
114+
- env: ci-arduino-310rc1
115+
board: esp32-c3-devkitc-02
116+
- env: ci-arduino-310rc1
117+
board: esp32-c6-devkitc-1
118+
- env: ci-arduino-310rc1
119+
board: esp32-h2-devkitm-1
120+
121+
- env: ci-esp8266
122+
board: huzzah
123+
- env: ci-esp8266
124+
board: d1_mini
125+
126+
- env: ci-raspberrypi
127+
board: rpipicow
113128
steps:
114-
- uses: actions/checkout@v4
115-
- uses: actions/cache@v4
129+
- name: Checkout
130+
uses: actions/checkout@v4
131+
132+
- name: Cache PlatformIO
133+
uses: actions/cache@v4
116134
with:
135+
key: ${{ runner.os }}-pio
117136
path: |
118-
~/.platformio
119137
~/.cache/pip
120-
key: pio
121-
- uses: actions/setup-python@v5
138+
~/.platformio
139+
140+
- name: Python
141+
uses: actions/setup-python@v5
122142
with:
123143
python-version: "3.x"
124-
- run: pip install platformio
125144

126-
- name: Install platformio
145+
- name: Build
127146
run: |
128147
python -m pip install --upgrade pip
129148
pip install --upgrade platformio
130-
131-
- run: PLATFORMIO_SRC_DIR=examples/CaptivePortal pio run -e ${{ matrix.environment }}
132-
- run: PLATFORMIO_SRC_DIR=examples/SimpleServer pio run -e ${{ matrix.environment }}
133-
- run: PLATFORMIO_SRC_DIR=examples/Filters pio run -e ${{ matrix.environment }}
134-
- run: PLATFORMIO_SRC_DIR=examples/StreamFiles pio run -e ${{ matrix.environment }}
149+
150+
- run: PLATFORMIO_SRC_DIR=examples/CaptivePortal PIO_BOARD=${{ matrix.board }} pio run -e ${{ matrix.env }}
151+
- run: PLATFORMIO_SRC_DIR=examples/SimpleServer PIO_BOARD=${{ matrix.board }} pio run -e ${{ matrix.env }}
152+
- run: PLATFORMIO_SRC_DIR=examples/Filters PIO_BOARD=${{ matrix.board }} pio run -e ${{ matrix.env }}
153+
- run: PLATFORMIO_SRC_DIR=examples/StreamFiles PIO_BOARD=${{ matrix.board }} pio run -e ${{ matrix.env }}

.gitpod.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
tasks:
2-
- command: pip install --upgrade pip && pip install -U platformio && platformio run -e arduino-3
2+
- command: pip install --upgrade pip && pip install -U platformio && platformio run
33

44
image:
55
file: .gitpod.Dockerfile

platformio.ini

+46-35
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
[platformio]
2+
default_envs = arduino-2, arduino-3, arduino-310rc1, esp8266, raspberrypi
3+
lib_dir = .
4+
; src_dir = examples/CaptivePortal
5+
src_dir = examples/SimpleServer
6+
; src_dir = examples/StreamFiles
7+
; src_dir = examples/Filters
8+
; src_dir = examples/Draft
9+
; src_dir = examples/issues/Issue14
10+
111
[env]
212
framework = arduino
313
build_flags =
@@ -13,36 +23,30 @@ build_flags =
1323
upload_protocol = esptool
1424
monitor_speed = 115200
1525
monitor_filters = esp32_exception_decoder, log2file
16-
17-
[platformio]
18-
lib_dir = .
19-
; src_dir = examples/CaptivePortal
20-
src_dir = examples/SimpleServer
21-
; src_dir = examples/StreamFiles
22-
; src_dir = examples/Filters
23-
; src_dir = examples/Draft
24-
; src_dir = examples/issues/Issue14
25-
26-
[env:arduino-2]
27-
28-
board = esp32dev
2926
lib_deps =
3027
bblanchon/ArduinoJson @ 7.1.0
3128
mathieucarbou/AsyncTCP @ 3.2.5
29+
lib_compat_mode = strict
30+
lib_ldf_mode = chain
31+
board = esp32dev
32+
33+
[env:arduino-2]
34+
3235

3336
[env:arduino-3]
34-
platform = espressif32
35-
platform_packages=
36-
platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.4
37-
platformio/framework-arduinoespressif32-libs @ https://github.com/espressif/arduino-esp32/releases/download/3.0.4/esp32-arduino-libs-3.0.4.zip
38-
board = esp32dev
39-
lib_deps =
40-
bblanchon/ArduinoJson @ 7.1.0
41-
mathieucarbou/AsyncTCP @ 3.2.5
37+
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.04/platform-espressif32.zip
38+
; board = esp32-s3-devkitc-1
39+
; board = esp32-c6-devkitc-1
40+
41+
[env:arduino-310rc1]
42+
platform = https://github.com/pioarduino/platform-espressif32/releases/download/53.03.10%%2Brc1/platform-espressif32.zip
43+
; board = esp32-s3-devkitc-1
44+
; board = esp32-c6-devkitc-1
4245

4346
[env:esp8266]
4447
platform = espressif8266
4548
board = huzzah
49+
; board = d1_mini
4650
lib_deps =
4751
bblanchon/ArduinoJson @ 7.1.0
4852
esphome/ESPAsyncTCP-esphome @ 2.0.0
@@ -51,31 +55,38 @@ lib_deps =
5155
; https://github.com/platformio/platform-raspberrypi/pull/36
5256
; https://github.com/earlephilhower/arduino-pico/blob/master/docs/platformio.rst
5357
; board settings: https://github.com/earlephilhower/arduino-pico/blob/master/tools/json/rpipico.json
54-
[env:rpipicow]
58+
[env:raspberrypi]
5559
upload_protocol = picotool
5660
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
5761
board = rpipicow
5862
lib_deps =
5963
bblanchon/ArduinoJson @ 7.1.0
6064
khoih-prog/AsyncTCP_RP2040W @ 1.2.0
6165

62-
[env:pioarduino-esp32dev]
63-
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.04/platform-espressif32.zip
64-
board = esp32dev
65-
lib_deps =
66-
bblanchon/ArduinoJson @ 7.1.0
67-
mathieucarbou/AsyncTCP @ 3.2.5
66+
; CI
67+
68+
[env:ci-arduino-2]
69+
70+
board = ${sysenv.PIO_BOARD}
6871

69-
[env:pioarduino-c6]
72+
[env:ci-arduino-3]
7073
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.04/platform-espressif32.zip
71-
board = esp32-c6-devkitc-1
74+
board = ${sysenv.PIO_BOARD}
75+
76+
[env:ci-arduino-310rc1]
77+
platform = https://github.com/pioarduino/platform-espressif32/releases/download/53.03.10%%2Brc1/platform-espressif32.zip
78+
board = ${sysenv.PIO_BOARD}
79+
80+
[env:ci-esp8266]
81+
platform = espressif8266
82+
board = ${sysenv.PIO_BOARD}
7283
lib_deps =
7384
bblanchon/ArduinoJson @ 7.1.0
74-
mathieucarbou/AsyncTCP @ 3.2.5
85+
esphome/ESPAsyncTCP-esphome @ 2.0.0
7586

76-
[env:pioarduino-h2]
77-
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.04/platform-espressif32.zip
78-
board = esp32-h2-devkitm-1
87+
[env:ci-raspberrypi]
88+
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
89+
board = ${sysenv.PIO_BOARD}
7990
lib_deps =
8091
bblanchon/ArduinoJson @ 7.1.0
81-
mathieucarbou/AsyncTCP @ 3.2.5
92+
khoih-prog/AsyncTCP_RP2040W @ 1.2.0

0 commit comments

Comments
 (0)