Skip to content

Commit 798daa8

Browse files
committed
Update CI build
1 parent 8e1d2cd commit 798daa8

File tree

1 file changed

+101
-7
lines changed

1 file changed

+101
-7
lines changed

.github/workflows/build.yml

Lines changed: 101 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- master
99

1010
jobs:
11-
build_esp_pio:
11+
build_esp_pio_legacy:
1212
strategy:
1313
fail-fast: false
1414
matrix:
@@ -48,16 +48,13 @@ jobs:
4848
cp ${{ matrix.example }}/* example/src/
4949
platformio run -d example
5050
51-
build_bt5_esp_pio:
51+
build_bt5_esp_pio_legacy:
5252
strategy:
5353
fail-fast: false
5454
matrix:
5555
example:
5656
- "examples/Bluetooth_5/NimBLE_extended_client"
5757
- "examples/Bluetooth_5/NimBLE_extended_server"
58-
variant:
59-
- esp32c3
60-
- esp32s3
6158
runs-on: ubuntu-latest
6259
steps:
6360
- uses: actions/checkout@v4
@@ -90,6 +87,99 @@ jobs:
9087
cp ${{ matrix.example }}/* example/src/
9188
platformio run -d example
9289
90+
build_esp_pioarduino:
91+
strategy:
92+
fail-fast: false
93+
matrix:
94+
example:
95+
- "examples/NimBLE_Client"
96+
- "examples/NimBLE_Server"
97+
runs-on: ubuntu-latest
98+
steps:
99+
- uses: actions/checkout@v4
100+
- name: Set up Python
101+
uses: actions/setup-python@v5
102+
with:
103+
python-version: "3.x"
104+
- name: Install platformio
105+
run: |
106+
python -m pip install --upgrade pip
107+
pip install platformio
108+
- name: Build esp PIO
109+
run: |
110+
mkdir -p example/lib
111+
rsync -Rr . example/lib/
112+
mkdir example/src
113+
cat > example/platformio.ini << EOF
114+
[env]
115+
platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
116+
framework = arduino
117+
118+
[env:esp32dev]
119+
board = esp32dev
120+
121+
[env:esp32c3]
122+
board = esp32-c3-devkitm-1
123+
124+
[env:esp32s3]
125+
board = esp32-s3-devkitc-1
126+
127+
[env:esp32c6]
128+
board = esp32-c6-devkitc-1
129+
130+
[env:esp32h2]
131+
board = esp32-h2-devkitm-1
132+
EOF
133+
cp ${{ matrix.example }}/* example/src/
134+
platformio run -d example
135+
136+
build_bt5_esp_pioarduino:
137+
strategy:
138+
fail-fast: false
139+
matrix:
140+
example:
141+
- "examples/Bluetooth_5/NimBLE_extended_client"
142+
- "examples/Bluetooth_5/NimBLE_extended_server"
143+
runs-on: ubuntu-latest
144+
steps:
145+
- uses: actions/checkout@v4
146+
- name: Set up Python
147+
uses: actions/setup-python@v5
148+
with:
149+
python-version: "3.x"
150+
- name: Install platformio
151+
run: |
152+
python -m pip install --upgrade pip
153+
pip install platformio
154+
- name: Build esp PIO
155+
run: |
156+
mkdir -p example/lib
157+
rsync -Rr . example/lib/
158+
mkdir example/src
159+
cat > example/platformio.ini << EOF
160+
[env]
161+
platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
162+
framework = arduino
163+
164+
[env:esp32c3]
165+
board = esp32-c3-devkitm-1
166+
build_flags = '-DCONFIG_BT_NIMBLE_EXT_ADV=1'
167+
168+
[env:esp32s3]
169+
board = esp32-s3-devkitc-1
170+
build_flags = '-DCONFIG_BT_NIMBLE_EXT_ADV=1'
171+
172+
[env:esp32c6]
173+
board = esp32-c6-devkitc-1
174+
build_flags = '-DCONFIG_BT_NIMBLE_EXT_ADV=1'
175+
176+
[env:esp32h2]
177+
board = esp32-h2-devkitm-1
178+
build_flags = '-DCONFIG_BT_NIMBLE_EXT_ADV=1'
179+
EOF
180+
cp ${{ matrix.example }}/* example/src/
181+
platformio run -d example
182+
93183
build_arduino-esp32:
94184
strategy:
95185
fail-fast: false
@@ -101,6 +191,8 @@ jobs:
101191
- esp32
102192
- esp32c3
103193
- esp32s3
194+
- esp32c6
195+
- esp32h2
104196
runs-on: ubuntu-latest
105197
steps:
106198
- uses: actions/checkout@v4
@@ -125,6 +217,8 @@ jobs:
125217
variant:
126218
- esp32c3
127219
- esp32s3
220+
- esp32c6
221+
- esp32h2
128222
runs-on: ubuntu-latest
129223
steps:
130224
- uses: actions/checkout@v4
@@ -219,7 +313,7 @@ jobs:
219313
mkdir example/src
220314
cat > example/platformio.ini << EOF
221315
[env]
222-
platform = https://github.com/h2zero/platform-n-able.git#1.0.0
316+
platform = https://github.com/h2zero/platform-n-able.git#1.1.1
223317
framework = arduino
224318
225319
[env:generic_nrf51822_xxaa
@@ -262,7 +356,7 @@ jobs:
262356
mkdir example/src
263357
cat > example/platformio.ini << EOF
264358
[env]
265-
platform = https://github.com/h2zero/platform-n-able.git#1.0.0
359+
platform = https://github.com/h2zero/platform-n-able.git#1.1.1
266360
framework = arduino
267361
268362
[env:generic_nrf52840]

0 commit comments

Comments
 (0)