Skip to content

Commit

Permalink
update CI for bundled/system library
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet committed Dec 2, 2024
1 parent 8e7da24 commit cff1eb9
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,36 @@ 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: |
sudo apt-get install -y "automake" "libtool" "libmd4c-dev" "libmd4c-html0-dev"
if: ${{ matrix.library }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{matrix.version}}
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
Expand All @@ -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/[email protected]
Expand Down

0 comments on commit cff1eb9

Please sign in to comment.