-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 988 Bytes
/
compile.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# 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
- L452RC_CUSTOM_MEMORY_MAP
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: Build project for ${{ matrix.mbed_target }}
run: |
mkdir build && cd build
cmake .. -GNinja -DUPLOAD_METHOD=NONE -DMBED_TARGET=${{ matrix.mbed_target }}
ninja