-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub Actions for build tests. This build tests checks with both Meson and CMake. Signed-off-by: Yasushi SHOJI <[email protected]>
- Loading branch information
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |