From 2b3d1007922a8882a588dac406ed4116f9c5d2c0 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Sun, 4 Feb 2024 23:33:03 -0500 Subject: [PATCH] CI: Add Github Actions testing for the meson builds too --- .github/workflows/unit-tests.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index ccd771b..38e97b0 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -25,3 +25,24 @@ jobs: ./autogen.sh CFLAGS="-O0 -Wall -Wextra" ./configure --enable-runtime=${{matrix.runtime}} make check + meson-test: + name: Meson Test + runs-on: ${{ matrix.os }} + strategy: + fail-fast: true + max-parallel: 3 + matrix: + os: ['ubuntu-latest', 'windows-latest', 'macos-latest'] + steps: + - name: Check out + uses: actions/checkout@v4 + with: + submodules: true + - name: Install dependencies + run: pip install --pre meson ninja + - name: Configure + run: meson setup builddir + - name: Build + run: ninja -C builddir + - name: Test + run: meson test -C builddir --print-errorlogs