Skip to content

Commit 8ff6928

Browse files
committed
ci: Use proper NuttX sample for testing
Select example app from NimBLE tree instead of Nuttx upstream. Also properly tune build for PR hash and include upstream NimBLE configuration with sample. This is due to NuttX not following our master branch but selected snapshots/releases with custom configuration.
1 parent 5dd8167 commit 8ff6928

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/build_ports.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,9 @@ jobs:
8787
git clone --depth=1 https://github.com/apache/nuttx.git nuttx-build/nuttx
8888
git clone --depth=1 https://github.com/apache/nuttx-apps nuttx-build/apps
8989
./nuttx-build/nuttx/tools/configure.sh -l nrf52840-dk:sdc_nimble
90-
sed -i 's|CONFIG_NIMBLE_REF :=.*|CONFIG_NIMBLE_REF := ${{ github.sha }}|' nuttx-build/apps/wireless/bluetooth/nimble/Makefile
90+
kconfig-tweak --file nuttx-build/nuttx/.config --set-str NIMBLE_REF ${{ github.sha }}
91+
kconfig-tweak --file nuttx-build/nuttx/.config --enable NIMBLE_PORTING_EXAMPLE
92+
echo '#include "../../../../mynewt-nimble/porting/examples/nuttx/include/syscfg/syscfg.h"'\
93+
>> nuttx-build/apps/wireless/bluetooth/nimble/include/syscfg/syscfg.h
94+
make -C nuttx-build/nuttx olddefconfig
9195
make -C nuttx-build/nuttx

0 commit comments

Comments
 (0)