Skip to content

Commit 3cb0eb4

Browse files
committed
.github: Add simple build test
Add GitHub Actions for build tests. This build tests checks with both Meson and CMake. Signed-off-by: Yasushi SHOJI <[email protected]>
1 parent ba70d17 commit 3cb0eb4

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/build-meson.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Build
2+
on: [push, pull_request]
3+
jobs:
4+
simple-build:
5+
runs-on: ubuntu-22.04
6+
strategy:
7+
fail-fast: false
8+
matrix:
9+
buildsystem:
10+
- meson
11+
- cmake
12+
13+
steps:
14+
- name: Install build system
15+
run: |
16+
sudo apt-get install ninja-build ${{ matrix.buildsystem }}
17+
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Checkout FreeRTOS-kernel
22+
uses: actions/checkout@v4
23+
with:
24+
repository: FreeRTOS/FreeRTOS-Kernel
25+
path: freertos
26+
27+
- name: Checkout libcsp
28+
uses: actions/checkout@v4
29+
with:
30+
repository: libcsp/libcsp
31+
path: subprojects/libcsp
32+
33+
- name: Configure with Meson
34+
if: ${{ matrix.buildsystem == 'meson' }}
35+
run: |
36+
meson setup builddir
37+
38+
- name: Configure with CMake
39+
if: ${{ matrix.buildsystem == 'cmake' }}
40+
run: |
41+
cmake -B builddir -GNinja
42+
43+
- name: Build
44+
run: |
45+
ninja -C builddir

0 commit comments

Comments
 (0)