35 lines
809 B
YAML
35 lines
809 B
YAML
name: CI
|
|
on:
|
|
push:
|
|
branches: [main, develop]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
host:
|
|
runs-on: ubuntu-builder
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Host build + tests
|
|
run: |
|
|
cmake -S . -B build-host \
|
|
-DBUILD_TESTING=ON -DBUILD_EXAMPLES=ON
|
|
cmake --build build-host
|
|
ctest --test-dir build-host --output-on-failure
|
|
|
|
cortex-m:
|
|
runs-on: ubuntu-builder
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install ARM GCC
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y gcc-arm-none-eabi
|
|
|
|
- name: Cortex-M compile matrix (DR_COMPILE_CHECK)
|
|
run: |
|
|
cmake -S . -B build-matrix -DDR_COMPILE_CHECK=ON
|
|
cmake --build build-matrix --parallel $(nproc)
|