8000 Build more examples from NimBLE-Arduino · h2zero/n-able-Arduino@86f1a8a · GitHub
[go: up one dir, main page]

Skip to content

Commit 86f1a8a

Browse files
committed
Build more examples from NimBLE-Arduino
1 parent 8b18082 commit 86f1a8a

File tree

1 file changed

+22
-15
lines changed

1 file changed

+22
-15
lines changed

.github/workflows/build.yml

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -51,28 +51,41 @@ jobs:
5151
fail-fast: false
5252
matrix:
5353
example:
54-
- "example/framework/libraries/n-able/examples/FreeRTOS"
55-
- "example/framework/libraries/n-able/examples/BLE_Advertiser"
56-
- "example/framework/libraries/n-able/examples/BLE_Scan"
57-
- "example/lib/examples/Bluetooth_5/NimBLE_extended_server/"
54+
- "example/lib/examples/Bluetooth_5/NimBLE_extended_server"
55+
- "example/lib/examples/NimBLE_Server"
56+
- "example/lib/examples/NimBLE_Client"
5857
variant:
58+
- generic_nrf51822_xxaa
5959
- generic_nrf52832
6060
- generic_nrf52833
6161
- generic_nrf52840
6262
- adafruit_feather_nrf52840
63+
nimble_version:
64+
- release/1.4
65+
- master
6366
include:
64-
- example: "example/lib/examples/Bluetooth_5/NimBLE_extended_server/"
67+
- example: "example/lib/examples/Bluetooth_5/NimBLE_extended_server"
6568
flags: build_flags = '-DCONFIG_BT_NIMBLE_EXT_ADV=1'
6669
- variant: adafruit_feather_nrf52840
6770
bootloader: board_bootloader = adafruit
6871
exclude:
69-
- example: "example/lib/examples/Bluetooth_5/NimBLE_extended_server/"
72+
- example: "example/lib/examples/Bluetooth_5/NimBLE_extended_server"
73+
variant: generic_nrf51822_xxaa
74+
- example: "example/lib/examples/Bluetooth_5/NimBLE_extended_server"
7075
variant: generic_nrf52832
7176

7277
runs-on: ubuntu-latest
7378

7479
steps:
75-
- uses: actions/checkout@v4
80+
- name: Make build folders
81+
run: |
82+
mkdir -p example/framework
83+
mkdir example/src
84+
mkdir example/lib
85+
- name: Checkout n-able-arduino
86+
uses: actions/checkout@v4
87+
with:
88+
path: example/framework
7689
- name: Set up Python
7790
uses: actions/setup-python@v5
7891
with:
@@ -81,23 +94,17 @@ jobs:
8194
run: |
8295
python -m pip install --upgrade pip
8396
pip install platformio
84-
- name: Make build folders
85-
run: |
86-
mkdir -p example/framework
87-
rsync -Rr . example/framework
88-
mkdir example/src
89-
mkdir example/lib
9097
- name: Checkout NimBLE_Arduino
9198
uses: actions/checkout@v4
9299
with:
93100
repository: h2zero/NimBLE-Arduino
94-
ref: release/1.4
101+
ref: ${{ matrix.nimble_version }}
95102
path: example/lib
96103
- name: Build n-able PIO
97104
run: |
98105
cat > example/platformio.ini << EOF
99106
[env]
100-
platform = https://github.com/h2zero/platform-n-able.git#1.0.0
107+
platform = https://github.com/h2zero/platform-n-able.git@^1.0.0
101108
platform_packages = framework-n-able-arduino @ file://./framework
102109
framework = arduino
103110
${{ matrix.flags }}

0 commit comments

Comments
 (0)
0