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 e642281
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/build-meson.yaml
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.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 e642281

Please sign in to comment.