1
1
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
2
2
3
- name : Build (pioarduino )
3
+ name : Build (ESP32 )
4
4
5
5
on :
6
6
workflow_dispatch :
@@ -15,98 +15,70 @@ concurrency:
15
15
cancel-in-progress : true
16
16
17
17
jobs :
18
- platformio-esp32- arduino-3 :
19
- name : PIO Arduino 3
18
+ arduino-esp32 :
19
+ name : ESP32 (arduino-cli) - Release
20
20
runs-on : ubuntu-latest
21
- strategy :
22
- fail-fast : false
23
- matrix :
24
- board :
25
- - esp32dev
26
- - esp32-s2-saola-1
27
- - esp32-s3-devkitc-1
28
- - esp32-c3-devkitc-02
29
- - esp32-c6-devkitc-1
30
- - esp32-h2-devkitm-1
31
-
32
21
steps :
33
- - name : Checkout
34
- uses : actions/checkout@v4
22
+ - name : Install arduino-cli
23
+ run : curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=/usr/local/bin sh
35
24
36
- - name : Cache PlatformIO
37
- uses : actions/cache@v4
38
- with :
39
- key : ${{ runner.os }}-pio
40
- path : |
41
- ~/.cache/pip
42
- ~/.platformio
25
+ - name : Update core index
26
+ run : arduino-cli core update-index --additional-urls https://espressif.github.io/arduino-esp32/package_esp32_index.json
43
27
44
- - name : Python
45
- uses : actions/setup-python@v5
46
- with :
47
- python-version : " 3.x"
28
+ - name : Install core
29
+ run : arduino-cli core install --additional-urls https://espressif.github.io/arduino-esp32/package_esp32_index.json esp32:esp32
48
30
49
- - name : Install PIO
50
- run : |
51
- python -m pip install --upgrade pip
52
- pip install --upgrade platformio
31
+ - name : Install ArduinoJson
32
+ run : arduino-cli lib install ArduinoJson
33
+
34
+ - name : Install AsyncTCP (ESP32)
35
+ run : ARDUINO_LIBRARY_ENABLE_UNSAFE_INSTALL=true arduino-cli lib install --git-url https://github.com/ESP32Async/AsyncTCP#v3.3.6
36
+
37
+ - name : Checkout
38
+ uses : actions/checkout@v4
53
39
54
40
- name : Build Examples
55
41
run : |
56
42
for i in `ls examples`; do
57
43
echo "============================================================="
58
44
echo "Building examples/$i..."
59
45
echo "============================================================="
60
- PLATFORMIO_SRC_DIR=examples/$i PIO_BOARD=${{ matrix.board }} pio run -e ci-arduino-3
46
+ arduino-cli compile --library . --warnings none -b esp32:esp32:esp32 "examples/$i/$i.ino"
61
47
done
62
48
63
- platformio -esp32-arduino-3-latest :
64
- name : PIO Arduino 3 Latest
49
+ arduino -esp32-dev :
50
+ name : ESP32 (arduino-cli) - Dev
65
51
runs-on : ubuntu-latest
66
- strategy :
67
- fail-fast : false
68
- matrix :
69
- board :
70
- - esp32dev
71
- - esp32-s2-saola-1
72
- - esp32-s3-devkitc-1
73
- - esp32-c3-devkitc-02
74
- - esp32-c6-devkitc-1
75
- - esp32-h2-devkitm-1
76
-
77
52
steps :
78
- - name : Checkout
79
- uses : actions/checkout@v4
53
+ - name : Install arduino-cli
54
+ run : curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=/usr/local/bin sh
80
55
81
- - name : Cache PlatformIO
82
- uses : actions/cache@v4
83
- with :
84
- key : ${{ runner.os }}-pio
85
- path : |
86
- ~/.cache/pip
87
- ~/.platformio
56
+ - name : Update core index
57
+ run : arduino-cli core update-index --additional-urls https://espressif.github.io/arduino-esp32/package_esp32_dev_index.json
88
58
89
- - name : Python
90
- uses : actions/setup-python@v5
91
- with :
92
- python-version : " 3.x"
59
+ - name : Install core
60
+ run : arduino-cli core install --additional-urls https://espressif.github.io/arduino-esp32/package_esp32_dev_index.json esp32:esp32
93
61
94
- - name : Install PIO
95
- run : |
96
- python -m pip install --upgrade pip
97
- pip install --upgrade platformio
62
+ - name : Install ArduinoJson
63
+ run : arduino-cli lib install ArduinoJson
64
+
65
+ - name : Install AsyncTCP (ESP32)
66
+ run : ARDUINO_LIBRARY_ENABLE_UNSAFE_INSTALL=true arduino-cli lib install --git-url https://github.com/ESP32Async/AsyncTCP#v3.3.6
67
+
68
+ - name : Checkout
69
+ uses : actions/checkout@v4
98
70
99
71
- name : Build Examples
100
72
run : |
101
73
for i in `ls examples`; do
102
74
echo "============================================================="
103
75
echo "Building examples/$i..."
104
76
echo "============================================================="
105
- PLATFORMIO_SRC_DIR=examples/$i PIO_BOARD=${{ matrix.board }} pio run -e ci-arduino-3-latest
77
+ arduino-cli compile --library . --warnings none -b esp32:esp32:esp32 "examples/$i/$i.ino"
106
78
done
107
-
79
+
108
80
platformio-esp32-arduino2 :
109
- name : PIO Arduino 2
81
+ name : ESP32 (pio) - Arduino 2
110
82
runs-on : ubuntu-latest
111
83
strategy :
112
84
fail-fast : false
@@ -148,15 +120,19 @@ jobs:
148
120
PLATFORMIO_SRC_DIR=examples/$i PIO_BOARD=${{ matrix.board }} pio run -e ci-arduino-2
149
121
done
150
122
151
- platformio-specials :
152
- name : PIO Specials
123
+ platformio-esp32-arduino-3 :
124
+ name : ESP32 (pio) - Arduino 3
153
125
runs-on : ubuntu-latest
154
126
strategy :
155
127
fail-fast : false
156
128
matrix :
157
- env :
158
- - ci-arduino-3-latest-asynctcp
159
- - ci-arduino-3-no-json
129
+ board :
130
+ - esp32dev
131
+ - esp32-s2-saola-1
132
+ - esp32-s3-devkitc-1
133
+ - esp32-c3-devkitc-02
134
+ - esp32-c6-devkitc-1
135
+ - esp32-h2-devkitm-1
160
136
161
137
steps :
162
138
- name : Checkout
@@ -186,18 +162,22 @@ jobs:
186
162
echo "============================================================="
187
163
echo "Building examples/$i..."
188
164
echo "============================================================="
189
- PLATFORMIO_SRC_DIR=examples/$i PIO_BOARD=esp32dev pio run -e ${{ matrix.env }}
165
+ PLATFORMIO_SRC_DIR=examples/$i PIO_BOARD=${{ matrix.board }} pio run -e ci-arduino-3
190
166
done
191
167
192
- platformio-esp8266 :
193
- name : PIO ESP8266
168
+ platformio-esp32-arduino-latest :
169
+ name : ESP32 (pio) - Arduino Latest
194
170
runs-on : ubuntu-latest
195
171
strategy :
196
172
fail-fast : false
197
173
matrix :
198
174
board :
199
- - huzzah
200
- - d1_mini
175
+ - esp32dev
176
+ - esp32-s2-saola-1
177
+ - esp32-s3-devkitc-1
178
+ - esp32-c3-devkitc-02
179
+ - esp32-c6-devkitc-1
180
+ - esp32-h2-devkitm-1
201
181
202
182
steps :
203
183
- name : Checkout
@@ -227,18 +207,18 @@ jobs:
227
207
echo "============================================================="
228
208
echo "Building examples/$i..."
229
209
echo "============================================================="
230
- PLATFORMIO_SRC_DIR=examples/$i PIO_BOARD=${{ matrix.board }} pio run -e ci-esp8266
210
+ PLATFORMIO_SRC_DIR=examples/$i PIO_BOARD=${{ matrix.board }} pio run -e ci-arduino-3-latest
231
211
done
232
212
233
- platformio-rpi :
234
- name : PIO RPI
213
+ platformio-specific-envs :
214
+ name : ESP32 (pio) - Specific Envs
235
215
runs-on : ubuntu-latest
236
216
strategy :
237
217
fail-fast : false
238
218
matrix :
239
- board :
240
- - rpipicow
241
- - rpipico2w
219
+ env :
220
+ - ci-arduino-3-latest-asynctcp
221
+ - ci-arduino-3-no-json
242
222
243
223
steps :
244
224
- name : Checkout
@@ -268,5 +248,5 @@ jobs:
268
248
echo "============================================================="
269
249
echo "Building examples/$i..."
270
250
echo "============================================================="
271
- PLATFORMIO_SRC_DIR=examples/$i PIO_BOARD=${{ matrix.board }} pio run -e ci-raspberrypi
251
+ PLATFORMIO_SRC_DIR=examples/$i PIO_BOARD=esp32dev pio run -e ${{ matrix.env }}
272
252
done
0 commit comments