From ed4ba491c24843b75dc37e997bc58f39c4f3a696 Mon Sep 17 00:00:00 2001 From: Yasushi SHOJI Date: Sun, 3 Mar 2024 23:43:09 +0900 Subject: [PATCH] .github: Add simple build test Signed-off-by: Yasushi SHOJI --- .github/workflows/build-meson.yaml | 45 ++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/build-meson.yaml diff --git a/.github/workflows/build-meson.yaml b/.github/workflows/build-meson.yaml new file mode 100644 index 0000000..0f2aa1b --- /dev/null +++ b/.github/workflows/build-meson.yaml @@ -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