Skip to content

Commit 9b4e949

Browse files
committed
test builds
1 parent 0a2708e commit 9b4e949

File tree

1 file changed

+3
-78
lines changed

1 file changed

+3
-78
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15+
os: [ubuntu-latest, windows-latest, macos-latest]
1516
example:
1617
- "libraries/n-able/examples/FreeRTOS"
1718
- "libraries/n-able/examples/BLE_Advertiser"
@@ -26,7 +27,7 @@ jobs:
2627
- Generic_nRF52840
2728
- feather52840
2829

29-
runs-on: ubuntu-latest
30+
runs-on: ${{ matrix.os }}
3031

3132
steps:
3233
- uses: actions/checkout@v6
@@ -45,87 +46,11 @@ jobs:
4546
cli-version: latest
4647
platforms: |
4748
- name: "n-able-Arduino:arm-ble"
48-
source-url: "https://h2zero.github.io/n-able-Arduino/package_n-able_boards_index.json"
49+
source-url: "https://h2zero.github.io/n-able-Arduino/package_n-able_boards_test_index.json"
4950
version: latest
5051
- name: "n-able-Arduino:arm-ble"
5152
source-path: .
5253
libraries: |
5354
- name: NimBLE-Arduino
5455
fqbn: "n-able-Arduino:arm-ble:${{ matrix.variant }}"
5556
sketch-paths: ${{ matrix.example }}
56-
57-
build_pio:
58-
strategy:
59-
fail-fast: false
60-
matrix:
61-
example:
62-
- "example/lib/examples/Bluetooth_5/NimBLE_extended_server"
63-
- "example/lib/examples/NimBLE_Server"
64-
- "example/lib/examples/NimBLE_Client"
65-
variant:
66-
- generic_nrf51822_xxaa
67-
- generic_nrf52810
68-
- generic_nrf52832
69-
- generic_nrf52833
70-
- generic_nrf52840
71-
- adafruit_feather_nrf52840
72-
nimble_version:
73-
- release/2.3
74-
- master
75-
include:
76-
- example: "example/lib/examples/Bluetooth_5/NimBLE_extended_server"
77-
flags: build_flags = '-DCONFIG_BT_NIMBLE_EXT_ADV=1'
78-
- example: "example/lib/examples/Bluetooth_5/NimBLE_extended_server"
79-
nimble_version: master
80-
flags: build_flags = '-DMYNEWT_VAL_BLE_EXT_ADV=1'
81-
- variant: adafruit_feather_nrf52840
82-
bootloader: board_bootloader = adafruit
83-
exclude:
84-
- example: "example/lib/examples/Bluetooth_5/NimBLE_extended_server"
85-
variant: generic_nrf51822_xxaa
86-
- example: "example/lib/examples/Bluetooth_5/NimBLE_extended_server"
87-
variant: generic_nrf52832
88-
- example: "example/lib/examples/Bluetooth_5/NimBLE_extended_server"
89-
variant: generic_nrf52810
90-
91-
runs-on: ubuntu-latest
92-
93-
steps:
94-
- name: Make build folders
95-
run: |
96-
mkdir -p example/framework
97-
mkdir example/src
98-
mkdir example/lib
99-
- name: Checkout n-able-arduino
100-
uses: actions/checkout@v6
101-
with:
102-
path: example/framework
103-
- name: Set up Python
104-
uses: actions/setup-python@v5
105-
with:
106-
python-version: "3.x"
107-
- name: Install platformio
108-
run: |
109-
python -m pip install --upgrade pip
110-
pip install platformio
111-
- name: Checkout NimBLE_Arduino
112-
uses: actions/checkout@v6
113-
with:
114-
repository: h2zero/NimBLE-Arduino
115-
ref: ${{ matrix.nimble_version }}
116-
path: example/lib
117-
- name: Build n-able PIO
118-
run: |
119-
cat > example/platformio.ini << EOF
120-
[env]
121-
platform = https://github.com/h2zero/platform-n-able.git
122-
platform_packages = framework-n-able-arduino @ file://./framework
123-
framework = arduino
124-
${{ matrix.flags }}
125-
${{ matrix.bootloader }}
126-
127-
[env:${{ matrix.variant }}]
128-
board = ${{ matrix.variant }}
129-
EOF
130-
cp ${{ matrix.example }}/* example/src/
131-
platformio run -d example

0 commit comments

Comments
 (0)