Skip to content

ci: Add macOS x86_64 and arm64 build jobs. #201

ci: Add macOS x86_64 and arm64 build jobs.

ci: Add macOS x86_64 and arm64 build jobs. #201

Workflow file for this run

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, macos-13, macos-14]
fail-fast: false
runs-on: ${{ matrix.os }}
name: build.py ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Setup arm-none-eabi-gcc v10.3
uses: carlosperate/arm-none-eabi-gcc-action@v1
with:
release: 10.3-2021.10
- name: Install CMake v3.22 & Ninja 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 --version
python --version
- name: Build mpy-cross
run: make -C lib/micropython/mpy-cross -j2
- name: Build MicroPython
shell: bash
working-directory: ./src
run: BUILD_VERBOSE=1 make -j2
- name: Upload hex file
uses: actions/upload-artifact@v3
with:
name: MICROBIT-MICROPYTHON-${{ github.sha }}-${{ matrix.os }}.hex
path: src/MICROBIT.hex