From e50c556fd50ebddef123cdb8040227d52d3b77e7 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 2 Dec 2024 15:58:25 +0100 Subject: [PATCH] update CI --- .github/workflows/ci.yml | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index db1036d..498be1c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,10 +5,21 @@ jobs: strategy: matrix: version: ['8.0', '8.1', '8.2', '8.3', '8.4'] + library: + - '' + - 'system' runs-on: ubuntu-latest steps: - name: Checkout md4c uses: actions/checkout@v4 + - name: Checkout submodules + run: | + git submodule update --init --recursive + if: ${{ ! matrix.library }} + - name: Install library + run: | + apk add --no-cache libmd4c-dev + if: ${{ matrix.library }} - name: Setup PHP uses: shivammathur/setup-php@v2 with: @@ -16,8 +27,14 @@ jobs: tools: phpize - name: phpize run: phpize - - name: configure - run: ./configure --enable-md4c + - name: configure with bundled library + run: | + configure --enable-md4c + if: ${{ ! matrix.library }} + - name: configure with library + run: | + configure --enable-md4c --enable-system-libmd4c + if: ${{ matrix.library }} - name: make run: make - name: test @@ -36,6 +53,8 @@ jobs: steps: - name: Checkout md4c uses: actions/checkout@v4 + - name: Checkout submodules + run: git submodule update --init --recursive - name: Setup PHP id: setup-php uses: php/setup-php-sdk@v0.10