-
Notifications
You must be signed in to change notification settings - Fork 27
39 lines (37 loc) · 944 Bytes
/
build.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
32
33
34
35
36
37
38
39
name: Build MicroPython
on:
push:
branches: '*'
pull_request:
branches: '*'
jobs:
build:
strategy:
matrix:
os: [ubuntu-20.04]
fail-fast: false
runs-on: ${{ matrix.os }}
name: build.py ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Install toolchain (Ubuntu)
if: runner.os == 'Linux'
run: |
sudo apt-get install -y gcc-arm-none-eabi libnewlib-arm-none-eabi
sudo apt-get install -y cmake
- name: Check Versions
run: |
arm-none-eabi-gcc --version
cmake --version
- name: Build
run: |
make -C lib/micropython/mpy-cross -j2
cd src
make -j2
- name: Upload hex file
uses: actions/upload-artifact@v3
with:
name: MICROBIT-MICROPYTHON-${{ github.sha }}.hex
path: src/MICROBIT.hex