-
Notifications
You must be signed in to change notification settings - Fork 118
31 lines (28 loc) · 1.05 KB
/
build_examples.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Build examples
on:
workflow_dispatch:
schedule:
- cron: '0 1 * * 6'
pull_request:
jobs:
run-conditional-feature-compilation-test:
name: Build BLE examples
runs-on: ubuntu-latest
container: mbedos/mbed-os-env:latest
strategy:
matrix:
MBED_TARGET: ["DISCO_L475VG_IOT01A", "NRF52840_DK"]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Deploy
run: |
git clone https://github.com/ARMmbed/mbed-os.git
for i in BLE_* ; do cd $i ; mbed config root . ; rm -rf mbed-os ; ln -s $PWD/../mbed-os mbed-os ; mbed update ; cd .. ; done
- name: Build mbed-cli v1
run: |
for i in BLE_* ; do cd $i ; mbed compile -t GCC_ARM -m ${{ matrix.MBED_TARGET }} || exit 1 ; cd .. ; done
- name: Build cmake
run: |
python3 -m pip install mbed-tools --upgrade # remove after docker image is updated to contain new tools
for i in BLE_* ; do cd $i ; mbed-tools compile -t GCC_ARM -m ${{ matrix.MBED_TARGET }} || exit 1 ; cd .. ; done