File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments