-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update CI for bundled/system library
- Loading branch information
1 parent
8e7da24
commit cff1eb9
Showing
1 changed file
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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] | ||
|