add workflow for checking ble feature selection compilation

pull/14927/head
Paul Szczepanek 2021-07-15 17:29:17 +01:00
parent 16d3e998fa
commit 413882e7ae
1 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,28 @@
name: run conditional BLE feature compilation
on:
workflow_dispatch:
schedule:
- cron: '0 1 * * 6'
jobs:
run-conditional-feature-compilation-test:
name: Conditional BLE features compilation tested
runs-on: ubuntu-latest
container: mbedos/mbed-os-env:latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
path: mbed-os
- name: Build
run: |
git clone https://github.com/ARMmbed/mbed-os-example-ble.git
cd mbed-os-example-ble/BLE_SupportedFeatures
ln -s ../../mbed-os mbed-os
for f in ../resources/test_configs/*; do
echo "Configuration file ${f}: "
echo "-------------------------------------------------------------------------"
cat "${f}"
echo "-------------------------------------------------------------------------"
mbed compile -t GCC_ARM -m NRF52840_DK --app-config "${f}"
done