Skip to content

Commit

Permalink
ci: Add macOS x86_64 and arm64 build jobs & update codal submodule.
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-carlos committed Mar 22, 2024
1 parent 8dfe395 commit 5a22c62
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 15 deletions.
33 changes: 19 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,35 @@ jobs:
build:
strategy:
matrix:
os: [ubuntu-20.04]
# 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
- uses: actions/checkout@v4
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
- 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 via PyPI
run: python -m pip install cmake==3.28.3
- 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
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@v3
uses: actions/upload-artifact@v4
with:
name: MICROBIT-MICROPYTHON-${{ github.sha }}.hex
name: MICROBIT-MICROPYTHON-${{ github.sha }}-${{ matrix.os }}.hex
path: src/MICROBIT.hex
2 changes: 1 addition & 1 deletion lib/codal

0 comments on commit 5a22c62

Please sign in to comment.