Skip to content

Commit 9e185e9

Browse files
Merge pull request #16 from carlosperate/ci
CI: Add workflow to build the default project.
2 parents 6e114e7 + 92d280b commit 9e185e9

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/build.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build Mbed OS project
2+
3+
on:
4+
push:
5+
branches: '*'
6+
pull_request:
7+
branches: '*'
8+
9+
jobs:
10+
build:
11+
name: Build project
12+
runs-on: ubuntu-20.04
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Install GNU Arm Embedded Toolchain (arm-none-eabi-gcc)
16+
uses: carlosperate/arm-none-eabi-gcc-action@v1
17+
with:
18+
release: '10-2020-q4'
19+
- name: Set up Python
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: '3.6'
23+
# Some dependencies used by the old Mbed OS version depend on pip < v10
24+
# & pip v9 struggles to install new version of cryptography (which uses rust)
25+
- run: pip install pip==9.0.3 cryptography==3.3.2
26+
# Old version of mbedos can have dependency clashes with newer mbed-cli
27+
- run: pip install mbed-cli
28+
- run: mbed config root .
29+
- run: mbed deploy
30+
- run: mbed compile -m nrf52_microbit_v2 -t GCC_ARM
31+
- name: Upload hex file
32+
uses: actions/upload-artifact@v1
33+
with:
34+
name: mbedos-microbit-v2-starter.hex
35+
path: ./BUILD/NRF52_MICROBIT_V2/GCC_ARM/mbedos-microbit-v2-starter.hex

0 commit comments

Comments
 (0)