.github: Add simple build test #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: [push, pull_request] | |
jobs: | |
simple-build: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
buildsystem: | |
- meson | |
- cmake | |
steps: | |
- name: Install build system | |
run: | | |
sudo apt-get install ninja-build ${{ matrix.buildsystem }} | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Checkout FreeRTOS-kernel | |
uses: actions/checkout@v4 | |
with: | |
repository: FreeRTOS/FreeRTOS-Kernel | |
path: freertos | |
- name: Checkout libcsp | |
uses: actions/checkout@v4 | |
with: | |
repository: libcsp/libcsp | |
path: subprojects/libcsp | |
- name: Configure with Meson | |
if: ${{ matrix.buildssytem == 'meson' }} | |
run: | | |
meson setup builddir | |
- name: Configure with CMake | |
if: ${{ matrix.buildssytem == 'cmake' }} | |
run: | | |
cmake -B builddir -GNinja | |
- name: Build | |
run: | | |
ninja -C builddir |