Skip to content

Commit

Permalink
Build ext server example.
Browse files Browse the repository at this point in the history
  • Loading branch information
h2zero committed Jun 27, 2024
1 parent 415a7d4 commit 31941bc
Showing 1 changed file with 30 additions and 6 deletions.
36 changes: 30 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [push, pull_request, workflow_dispatch]
jobs:
build_arduino:
strategy:
fail-fast: false
fail-fast: true
matrix:
example:
- "libraries/n-able/examples/FreeRTOS"
Expand Down Expand Up @@ -54,6 +54,20 @@ jobs:
- "libraries/n-able/examples/FreeRTOS"
- "libraries/n-able/examples/BLE_Advertiser"
- "libraries/n-able/examples/BLE_Scan"
- "example/lib/examples/Bluetooth_5/NimBLE_extended_server/"
variant:
- generic_nrf52832
- generic_nrf52833
- generic_nrf52840
- adafruit_feather_nrf52840
include:
- example: "example/lib/examples/Bluetooth_5/NimBLE_extended_server/"
flags: build_flags = '-DCONFIG_BT_NIMBLE_EXT_ADV=1'
- variant: adafruit_feather_nrf52840
bootloader: board_bootloader = adafruit
exclude:
- example: "example/lib/examples/Bluetooth_5/NimBLE_extended_server/"
variant: generic_nrf52832

runs-on: ubuntu-latest

Expand All @@ -67,20 +81,30 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install platformio
- name: Build n-able PIO
- name: Make build folders
run: |
mkdir -p example/framework
rsync -Rr . example/framework
mkdir example/src
mkdir example/src
mkdir example/lib
- name: Checkout NimBLE_Arduino
uses: actions/checkout@v4
with:
repository: h2zero/NimBLE-Arduino
ref: release/1.4
path: example/lib
- name: Build n-able PIO
run: |
cat > example/platformio.ini << EOF
[env]
platform = https://github.com/h2zero/platform-n-able.git#1.0.0
platform_packages = framework-n-able-arduino @ file://./framework
framework = arduino
lib_deps = h2zero/NimBLE-Arduino
${{ matrix.flags }}
${{ matrix.bootloader }}
[env:generic_nrf52840]
board = generic_nrf52840
[env:${{ matrix.variant }}]
board = ${{ matrix.variant }}
EOF
cp ${{ matrix.example }}/* example/src/
platformio run -d example

0 comments on commit 31941bc

Please sign in to comment.