Skip to content

Commit

Permalink
Build more examples from NimBLE-Arduino
Browse files Browse the repository at this point in the history
  • Loading branch information
h2zero committed Jun 28, 2024
1 parent c34089a commit 7c38177
Showing 1 changed file with 22 additions and 15 deletions.
37 changes: 22 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,28 +51,41 @@ jobs:
fail-fast: false
matrix:
example:
- "example/framework/libraries/n-able/examples/FreeRTOS"
- "example/framework/libraries/n-able/examples/BLE_Advertiser"
- "example/framework/libraries/n-able/examples/BLE_Scan"
- "example/lib/examples/Bluetooth_5/NimBLE_extended_server/"
- "example/lib/examples/Bluetooth_5/NimBLE_extended_server"
- "example/lib/examples/NimBLE_Server"
- "example/lib/examples/NimBLE_Client"
variant:
- generic_nrf51822_xxaa
- generic_nrf52832
- generic_nrf52833
- generic_nrf52840
- adafruit_feather_nrf52840
nimble_version:
- release/1.4
- master
include:
- example: "example/lib/examples/Bluetooth_5/NimBLE_extended_server/"
- 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/"
- 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

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Make build folders
run: |
mkdir -p example/framework
mkdir example/src
mkdir example/lib
- name: Checkout n-able-arduino
uses: actions/checkout@v4
with:
path: example/framework
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand All @@ -81,23 +94,17 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install platformio
- name: Make build folders
run: |
mkdir -p example/framework
rsync -Rr . example/framework
mkdir example/src
mkdir example/lib
- name: Checkout NimBLE_Arduino
uses: actions/checkout@v4
with:
repository: h2zero/NimBLE-Arduino
ref: release/1.4
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#1.0.0
platform = https://github.com/h2zero/platform-n-able.git@^1.0.0
platform_packages = framework-n-able-arduino @ file://./framework
framework = arduino
${{ matrix.flags }}
Expand Down

0 comments on commit 7c38177

Please sign in to comment.