From de6206f30c6bdd6f8a544b608692ec2cbf6b49bc Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Sun, 4 Feb 2024 23:27:19 -0500 Subject: [PATCH] GHA: add meson testing --- .github/workflows/unit-tests.yml | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index ccd771b..a77c770 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -2,9 +2,7 @@ name: libpsl on: push: - branches: [main] pull_request: - branches: ["**"] jobs: test: @@ -25,3 +23,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