Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 3 additions & 78 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
example:
- "libraries/n-able/examples/FreeRTOS"
- "libraries/n-able/examples/BLE_Advertiser"
Expand All @@ -26,7 +27,7 @@ jobs:
- Generic_nRF52840
- feather52840

runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v6
Expand All @@ -45,87 +46,11 @@ jobs:
cli-version: latest
platforms: |
- name: "n-able-Arduino:arm-ble"
source-url: "https://h2zero.github.io/n-able-Arduino/package_n-able_boards_index.json"
source-url: "https://h2zero.github.io/n-able-Arduino/package_n-able_boards_test_index.json"
version: latest
- name: "n-able-Arduino:arm-ble"
source-path: .
libraries: |
- name: NimBLE-Arduino
fqbn: "n-able-Arduino:arm-ble:${{ matrix.variant }}"
sketch-paths: ${{ matrix.example }}

build_pio:
strategy:
fail-fast: false
matrix:
example:
- "example/lib/examples/Bluetooth_5/NimBLE_extended_server"
- "example/lib/examples/NimBLE_Server"
- "example/lib/examples/NimBLE_Client"
variant:
- generic_nrf51822_xxaa
- generic_nrf52810
- generic_nrf52832
- generic_nrf52833
- generic_nrf52840
- adafruit_feather_nrf52840
nimble_version:
- release/2.3
- master
include:
- example: "example/lib/examples/Bluetooth_5/NimBLE_extended_server"
flags: build_flags = '-DCONFIG_BT_NIMBLE_EXT_ADV=1'
- example: "example/lib/examples/Bluetooth_5/NimBLE_extended_server"
nimble_version: master
flags: build_flags = '-DMYNEWT_VAL_BLE_EXT_ADV=1'
- variant: adafruit_feather_nrf52840
bootloader: board_bootloader = adafruit
exclude:
- example: "example/lib/examples/Bluetooth_5/NimBLE_extended_server"
variant: generic_nrf51822_xxaa
- example: "example/lib/examples/Bluetooth_5/NimBLE_extended_server"
variant: generic_nrf52832
- example: "example/lib/examples/Bluetooth_5/NimBLE_extended_server"
variant: generic_nrf52810

runs-on: ubuntu-latest

steps:
- name: Make build folders
run: |
mkdir -p example/framework
mkdir example/src
mkdir example/lib
- name: Checkout n-able-arduino
uses: actions/checkout@v6
with:
path: example/framework
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install platformio
run: |
python -m pip install --upgrade pip
pip install platformio
- name: Checkout NimBLE_Arduino
uses: actions/checkout@v6
with:
repository: h2zero/NimBLE-Arduino
ref: ${{ matrix.nimble_version }}
path: example/lib
- name: Build n-able PIO
run: |
cat > example/platformio.ini << EOF
[env]
platform = https://github.com/h2zero/platform-n-able.git
platform_packages = framework-n-able-arduino @ file://./framework
framework = arduino
${{ matrix.flags }}
${{ matrix.bootloader }}

[env:${{ matrix.variant }}]
board = ${{ matrix.variant }}
EOF
cp ${{ matrix.example }}/* example/src/
platformio run -d example
2 changes: 1 addition & 1 deletion platform.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ compiler.warning_flags.default=
compiler.warning_flags.more=-Wall
compiler.warning_flags.all=-Wall -Wextra

compiler.path={runtime.tools.gcc-arm-none-eabi-9.3.1-1.path}/bin/
compiler.path={runtime.tools.gcc-arm-none-eabi-10.3.1-2.1.path}/bin/
compiler.c.cmd=arm-none-eabi-gcc
compiler.c.flags=-mcpu={build.mcu} -mthumb -c -g -Os {compiler.warning_flags} {build.float_flags} -Wno-unused-parameter -Wno-sign-compare -Wno-old-style-declaration -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD
compiler.c.elf.cmd=arm-none-eabi-g++
Expand Down
Loading