Skip to content

Commit 68d4f4d

Browse files
committed
👷 (GitHub): test PlatformIO with different NimBLE versions
1 parent 53ed609 commit 68d4f4d

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

.github/workflows/platformio-ci.yml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,31 @@ jobs:
2121
os: [ ubuntu-latest ]
2222
example:
2323
- "SerialToSerialBLE"
24-
- "SerialToSerialBLE_TransparentUART"
24+
# - "SerialToSerialBLE_TransparentUART"
2525
- "SerialToSerialBLE_TransparentUART-NimBLE"
2626
boards:
2727
- [ esp32dev, esp32-s3-devkitc-1, esp32-c3-devkitm-1 ]
28-
nimble: [ false, true ]
28+
nimble:
29+
- false
30+
- '^1.4.0'
31+
- '^2.0.0'
2932

3033
exclude:
31-
- example: "SerialToSerialBLE_TransparentUART"
32-
nimble: true
3334
- example: "SerialToSerialBLE_TransparentUART-NimBLE"
3435
nimble: false
36+
# - example: "SerialToSerialBLE_TransparentUART"
37+
# nimble: '^1.4.0'
38+
# - example: "SerialToSerialBLE_TransparentUART"
39+
# nimble: '^2.0.0'
40+
include:
41+
- example: "SerialToSerialBLE_TransparentUART-NimBLE"
42+
nimble: '^2.0.0'
43+
os: ubuntu-latest
44+
boards: [esp32dev, esp32-s3-devkitc-1, esp32-c3-devkitm-1]
45+
- example: "SerialToSerialBLE_TransparentUART-NimBLE"
46+
nimble: '^1.4.0'
47+
os: ubuntu-latest
48+
boards: [esp32dev, esp32-s3-devkitc-1, esp32-c3-devkitm-1]
3549

3650
steps:
3751
- uses: actions/checkout@v4
@@ -68,14 +82,14 @@ jobs:
6882
6983
- name: Build example
7084
run: |
71-
pio ci --lib="." --board=${{ join(matrix.boards, ' --board=') }} ${{ matrix.nimble && '--project-option="lib_deps=h2zero/NimBLE-Arduino@^1.4.0"' || '' }}
85+
pio ci --lib="." --board=${{ join(matrix.boards, ' --board=') }} ${{ matrix.nimble && format('--project-option="lib_deps=h2zero/NimBLE-Arduino@{0}"', matrix.nimble) || '' }}
7286
env:
7387
PLATFORMIO_CI_SRC: "./examples/${{ matrix.example }}/*.ino"
7488
PLATFORMIO_BUILD_UNFLAGS: |
7589
-std=gnu++11
7690
PLATFORMIO_BUILD_FLAGS: |
7791
-std=gnu++17
78-
-D BLESERIAL_USE_NIMBLE=${{ matrix.nimble }}
92+
-D BLESERIAL_USE_NIMBLE=${{ matrix.nimble != false}}
7993
-Wall
8094
-Wextra
8195
-Wpedantic

0 commit comments

Comments
 (0)