Skip to content

Commit

Permalink
.github: Add simple build test
Browse files Browse the repository at this point in the history
Signed-off-by: Yasushi SHOJI <[email protected]>
  • Loading branch information
yashi committed Mar 3, 2024
1 parent ba70d17 commit aaa17e6
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/build-meson.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build
on: [push, pull_request]
jobs:
run-tests:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-22.04
- ubuntu-20.04
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

0 comments on commit aaa17e6

Please sign in to comment.