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 d92bdd4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
28 changes: 16 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,34 @@ 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
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: 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
- name: Build
run: |
make -C lib/micropython/mpy-cross -j2
cd src
make -j2
ninja --version
python --version
- name: Build mpy-cross
run: make -C lib/micropython/mpy-cross -j2
- name: Build MicroPython
working-directory: ./src
run: BUILD_VERBOSE=1 make -j2
- name: Upload hex file
uses: actions/upload-artifact@v3
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 d92bdd4

Please sign in to comment.