Skip to content

Commit d7dd9dd

Browse files
committed
add uriparser ci
1 parent 77ddfb5 commit d7dd9dd

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

.github/scripts/download-bundled/make-workflow-file.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
$bundles = [
88
new Bundle('boost.context', ['Zend/asm']),
99
new Bundle('PCRE2', ['ext/pcre/pcre2lib']),
10+
new Bundle('uriparser', ['ext/uri/uriparser']),
1011
];
1112

1213
class Bundle
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/sh
2+
set -ex
3+
cd "$(dirname "$0")/../../.."
4+
5+
tmp_dir=/tmp/php-src-download-bundled/uriparser
6+
rm -rf "$tmp_dir"
7+
8+
revision=c3b49569f1f25550a16d9a18207e498d77458b27 # refs/tags/uriparser-0.9.9 with https://github.com/uriparser/uriparser/pull/276
9+
10+
git clone --depth 1 --revision="$revision" https://github.com/uriparser/uriparser.git "$tmp_dir"
11+
12+
rm -rf ext/uri/uriparser
13+
mkdir ext/uri/uriparser
14+
cp -R "$tmp_dir"/src ext/uri/uriparser
15+
cp -R "$tmp_dir"/include ext/uri/uriparser
16+
cp "$tmp_dir"/COPYING.BSD-3-Clause ext/uri/uriparser
17+
18+
cd ext/uri/uriparser
19+
20+
# move renamed files
21+
mv src/UriConfig.h.in src/UriConfig.h

.github/workflows/verify-bundled-files.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ jobs:
3030
pcre2:
3131
- '.github/scripts/download-bundled/pcre2.*'
3232
- 'ext/pcre/pcre2lib/**'
33+
uriparser:
34+
- '.github/scripts/download-bundled/uriparser.*'
35+
- 'ext/uri/uriparser/**'
3336
3437
- name: 'boost.context'
3538
if: ${{ !cancelled() && (steps.changes.outputs.pcre2 == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') }}
@@ -49,3 +52,12 @@ jobs:
4952
echo "::group::Verify files"
5053
.github/scripts/test-directory-unchanged.sh "ext/pcre/pcre2lib"
5154
echo "::endgroup::"
55+
- name: uriparser
56+
if: ${{ !cancelled() && (steps.changes.outputs.pcre2 == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') }}
57+
run: |
58+
echo "::group::Download"
59+
.github/scripts/download-bundled/uriparser.sh
60+
echo "::endgroup::"
61+
echo "::group::Verify files"
62+
.github/scripts/test-directory-unchanged.sh "ext/uri/uriparser"
63+
echo "::endgroup::"

0 commit comments

Comments
 (0)