Skip to content

Commit d1d484a

Browse files
committed
Update CI build
1 parent df1e5ae commit d1d484a

File tree

1 file changed

+103
-7
lines changed

1 file changed

+103
-7
lines changed

.github/workflows/build.yml

Lines changed: 103 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,101 @@ jobs:
9087
cp ${{ matrix.example }}/* example/src/
9188
platformio run -d example
9289
90+
jobs:
91+
92+
build_esp_pioarduino:
93+
strategy:
94+
fail-fast: false
95+
matrix:
96+
example:
97+
- "examples/NimBLE_Client"
98+
- "examples/NimBLE_Server"
99+
runs-on: ubuntu-latest
100+
steps:
101+
- uses: actions/checkout@v4
102+
- name: Set up Python
103+
uses: actions/setup-python@v5
104+
with:
105+
python-version: "3.x"
106+
- name: Install platformio
107+
run: |
108+
python -m pip install --upgrade pip
109+
pip install platformio
110+
- name: Build esp PIO
111+
run: |
112+
mkdir -p example/lib
113+
rsync -Rr . example/lib/
114+
mkdir example/src
115+
cat > example/platformio.ini << EOF
116+
[env]
117+
platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
118+
framework = arduino
119+
120+
[env:esp32dev]
121+
board = esp32dev
122+
123+
[env:esp32c3]
124+
board = esp32-c3-devkitm-1
125+
126+
[env:esp32s3]
127+
board = esp32-s3-devkitc-1
128+
129+
[env:esp32c6]
130+
board = esp32-c6-devkitc-1
131+
132+
[env:esp32h2]
133+
board = esp32-h2-devkitm-1
134+
EOF
135+
cp ${{ matrix.example }}/* example/src/
136+
platformio run -d example
137+
138+
build_bt5_esp_pioarduino:
139+
strategy:
140+
fail-fast: false
141+
matrix:
142+
example:
143+
- "examples/Bluetooth_5/NimBLE_extended_client"
144+
- "examples/Bluetooth_5/NimBLE_extended_server"
145+
runs-on: ubuntu-latest
146+
steps:
147+
- uses: actions/checkout@v4
148+
- name: Set up Python
149+
uses: actions/setup-python@v5
150+
with:
151+
python-version: "3.x"
152+
- name: Install platformio
153+
run: |
154+
python -m pip install --upgrade pip
155+
pip install platformio
156+
- name: Build esp PIO
157+
run: |
158+
mkdir -p example/lib
159+
rsync -Rr . example/lib/
160+
mkdir example/src
161+
cat > example/platformio.ini << EOF
162+
[env]
163+
platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
164+
framework = arduino
165+
166+
[env:esp32c3]
167+
board = esp32-c3-devkitm-1
168+
build_flags = '-DCONFIG_BT_NIMBLE_EXT_ADV=1'
169+
170+
[env:esp32s3]
171+
board = esp32-s3-devkitc-1
172+
build_flags = '-DCONFIG_BT_NIMBLE_EXT_ADV=1'
173+
174+
[env:esp32c6]
175+
board = esp32-c6-devkitc-1
176+
build_flags = '-DCONFIG_BT_NIMBLE_EXT_ADV=1'
177+
178+
[env:esp32h2]
179+
board = esp32-h2-devkitm-1
180+
build_flags = '-DCONFIG_BT_NIMBLE_EXT_ADV=1'
181+
EOF
182+
cp ${{ matrix.example }}/* example/src/
183+
platformio run -d example
184+
93185
build_arduino-esp32:
94186
strategy:
95187
fail-fast: false
@@ -101,6 +193,8 @@ jobs:
101193
- esp32
102194
- esp32c3
103195
- esp32s3
196+
- esp32c6
197+
- esp32h2
104198
runs-on: ubuntu-latest
105199
steps:
106200
- uses: actions/checkout@v4
@@ -125,6 +219,8 @@ jobs:
125219
variant:
126220
- esp32c3
127221
- esp32s3
222+
- esp32c6
223+
- esp32h2
128224
runs-on: ubuntu-latest
129225
steps:
130226
- uses: actions/checkout@v4
@@ -219,7 +315,7 @@ jobs:
219315
mkdir example/src
220316
cat > example/platformio.ini << EOF
221317
[env]
222-
platform = https://github.com/h2zero/platform-n-able.git#1.0.0
318+
platform = https://github.com/h2zero/platform-n-able.git#1.1.1
223319
framework = arduino
224320
225321
[env:generic_nrf51822_xxaa
@@ -262,7 +358,7 @@ jobs:
262358
mkdir example/src
263359
cat > example/platformio.ini << EOF
264360
[env]
265-
platform = https://github.com/h2zero/platform-n-able.git#1.0.0
361+
platform = https://github.com/h2zero/platform-n-able.git#1.1.1
266362
framework = arduino
267363
268364
[env:generic_nrf52840]

0 commit comments

Comments
 (0)