Skip to content

Merge pull request #2 from mbed-ce/dev/mbed-ce-readme #14

Merge pull request #2 from mbed-ce/dev/mbed-ce-readme

Merge pull request #2 from mbed-ce/dev/mbed-ce-readme #14

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
on: push
jobs:
compile:
runs-on: ubuntu-latest
container: ghcr.io/armmbed/mbed-os-env:master-latest
strategy:
matrix:
mbed_target:
# Change the below to match the target(s) you want to compile the project for.
- NUCLEO_H743ZI2
- K64F
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install python3-venv
run: |
apt-get update
apt-get install -y python3-venv
- name: Generate transient key pair
run: |
python3 -m pip install --user --upgrade pyopenssl # Work around runtime error
python3 -m pip install --user -r mcuboot/scripts/requirements.txt
python3 -m pip install --user mcuboot/scripts
$HOME/.local/bin/imgtool keygen -k signing-keys.pem -t rsa-2048
- name: Build project for ${{ matrix.mbed_target }}
run: |
mkdir build && cd build
cmake .. -GNinja -DMBED_TARGET=${{ matrix.mbed_target }} -DMCUBOOT_SIGNING_KEY=signing-keys.pem
ninja