Skip to content

Update the custom target example #11

Update the custom target example

Update the custom target example #11

Workflow file for this run

# Example GitHub Actions workflow which provides a CI build for your Mbed CE project.
name: Test that this Mbed project compiles
# Change this to "on: push" to run the workflow on every commit instead of when a PR is submitted.
on: pull_request
jobs:
compile:
runs-on: ubuntu-latest
container: ghcr.io/armmbed/mbed-os-env:master-latest
strategy:
matrix:
mbed_target:
- L452RE_SIMPLE
- L452RE_CUSTOM_PINMAP
- L452RE_CUSTOM_CLOCK
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Python dependencies
run: |
python3 -m pip install -r mbed-os/tools/requirements.txt
- name: Build project for ${{ matrix.mbed_target }}
run: |
mkdir build && cd build
cmake .. -GNinja -DUPLOAD_METHOD=NONE -DMBED_TARGET=${{ matrix.mbed_target }}
ninja mbed-os # need to build mbed-os explicitly, or it will not be compiled because there are no executables that use it.