-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (38 loc) · 1023 Bytes
/
build-meson.yaml
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
37
38
39
40
41
42
43
44
45
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.buildsystem == 'meson' }}
run: |
meson setup builddir
- name: Configure with CMake
if: ${{ matrix.buildsystem == 'cmake' }}
run: |
cmake -B builddir -GNinja
- name: Build
run: |
ninja -C builddir