Skip to content

Commit

Permalink
update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet committed Dec 2, 2024
1 parent 6121ae9 commit 6242f8c
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ jobs:
strategy:
matrix:
version: ['8.0', '8.1', '8.2', '8.3', '8.4']
library:
- ''
- 'system'
runs-on: ubuntu-latest
steps:
- name: Checkout md4c
Expand Down Expand Up @@ -36,6 +39,14 @@ jobs:
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
id: setup-php
uses: php/[email protected]
Expand All @@ -51,8 +62,14 @@ jobs:
toolset: ${{steps.setup-php.outputs.toolset}}
- name: phpize
run: phpize
- name: configure
run: configure --enable-md4c --with-prefix=${{steps.setup-php.outputs.prefix}}
- name: configure with bundled library
run: |
configure --enable-md4c --with-prefix=${{steps.setup-php.outputs.prefix}}
if: ${{ ! matrix.library }}
- name: Build with library
run: |
configure --enable-md4c --with-prefix=${{steps.setup-php.outputs.prefix}} --enable-system-libmd4c
if: ${{ matrix.library }}
- name: make
run: nmake
- name: test
Expand Down

0 comments on commit 6242f8c

Please sign in to comment.