-
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.
Merge pull request #16 from remicollet/issue-submodule
use git submodule for library sources
- Loading branch information
Showing
9 changed files
with
295 additions
and
10,028 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] | ||
|
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[submodule "md4c"] | ||
path = md4c | ||
[submodule "libmd4c"] | ||
path = libmd4c | ||
url = https://github.com/mity/md4c |
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
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 |
---|---|---|
@@ -1,5 +1,12 @@ | ||
ARG_ENABLE('md4c', 'Enable the md4c extension', 'no'); | ||
|
||
if (PHP_MD4C != 'no') { | ||
EXTENSION('md4c', 'md4c.c'); | ||
EXTENSION('md4c', 'php_md4c.c'); | ||
ADD_SOURCES(configure_module_dirname + "/libmd4c/src", "\ | ||
entity.c \ | ||
md4c.c \ | ||
md4c-html.c", | ||
"md4c" | ||
); | ||
CHECK_HEADER_ADD_INCLUDE("md4c-html.h", "CFLAGS_MD4C", "libmd4c/src/"); | ||
} |
Submodule md4c
deleted from
481fbf
Oops, something went wrong.