-
Notifications
You must be signed in to change notification settings - Fork 26
45 lines (43 loc) · 1.21 KB
/
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
40
41
42
43
44
45
name: Build MicroPython
on:
push:
branches: '*'
pull_request:
branches: '*'
jobs:
build:
strategy:
matrix:
# macos-13 is x86_64, and macos-14 is arm64
os: [ubuntu-22.04, windows-2022, macos-13, macos-14]
fail-fast: false
runs-on: ${{ matrix.os }}
name: build.py ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- uses: carlosperate/arm-none-eabi-gcc-action@v1
with:
release: 10.3-2021.10
- name: Install CMake v3.22 & Ninja v1.11 via PyPI
run: python -m pip install cmake==3.28.3 ninja==1.11.1.1
- name: Check Versions
run: |
arm-none-eabi-gcc --version
cmake --version
ninja --versio
python --version
uname -a
- name: Build mpy-cross
run: make -C lib/micropython/mpy-cross -j2
- name: Build MicroPython
run: make -C src -j2
- name: Upload hex file
uses: actions/upload-artifact@v4
with:
name: MICROBIT-MICROPYTHON-${{ github.sha }}-${{ matrix.os }}.hex
path: src/MICROBIT.hex