Skip to content

Commit 20e42c1

Browse files
committed
add uriparser ci
1 parent 38b6741 commit 20e42c1

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
@@ -34,6 +34,9 @@ jobs:
3434
pcre2:
3535
- '.github/scripts/download-bundled/pcre2.*'
3636
- 'ext/pcre/pcre2lib/**'
37+
uriparser:
38+
- '.github/scripts/download-bundled/uriparser.*'
39+
- 'ext/uri/uriparser/**'
3740
3841
- name: 'boost.context'
3942
if: ${{ !cancelled() && (steps.changes.outputs.pcre2 == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') }}
@@ -53,3 +56,12 @@ jobs:
5356
echo "::group::Verify files"
5457
.github/scripts/test-directory-unchanged.sh "ext/pcre/pcre2lib"
5558
echo "::endgroup::"
59+
- name: uriparser
60+
if: ${{ !cancelled() && (steps.changes.outputs.pcre2 == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') }}
61+
run: |
62+
echo "::group::Download"
63+
.github/scripts/download-bundled/uriparser.sh
64+
echo "::endgroup::"
65+
echo "::group::Verify files"
66+
.github/scripts/test-directory-unchanged.sh "ext/uri/uriparser"
67+
echo "::endgroup::"

0 commit comments

Comments
 (0)