Skip to content

Commit ce8632b

Browse files
committed
add uriparser ci
1 parent 9579b4f commit ce8632b

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-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
@@ -8,6 +8,7 @@
88
$bundles = [
99
new Bundle('boost.context', ['Zend/asm']),
1010
new Bundle('PCRE2', ['ext/pcre/pcre2lib']),
11+
new Bundle('uriparser', ['ext/uri/uriparser']),
1112
];
1213

1314
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: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- '.github/scripts/download-bundled/**'
77
- 'Zend/asm/**'
88
- 'ext/pcre/pcre2lib/**'
9+
- 'ext/uri/uriparser/**'
910
pull_request:
1011
paths: *paths
1112
schedule:
@@ -35,6 +36,9 @@ jobs:
3536
pcre2:
3637
- '.github/scripts/download-bundled/pcre2.*'
3738
- 'ext/pcre/pcre2lib/**'
39+
uriparser:
40+
- '.github/scripts/download-bundled/uriparser.*'
41+
- 'ext/uri/uriparser/**'
3842
3943
- name: 'boost.context'
4044
if: ${{ !cancelled() && (steps.changes.outputs.boost-context == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') }}
@@ -54,3 +58,12 @@ jobs:
5458
echo "::group::Verify files"
5559
.github/scripts/test-directory-unchanged.sh "ext/pcre/pcre2lib"
5660
echo "::endgroup::"
61+
- name: uriparser
62+
if: ${{ !cancelled() && (steps.changes.outputs.uriparser == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') }}
63+
run: |
64+
echo "::group::Download"
65+
.github/scripts/download-bundled/uriparser.sh
66+
echo "::endgroup::"
67+
echo "::group::Verify files"
68+
.github/scripts/test-directory-unchanged.sh "ext/uri/uriparser"
69+
echo "::endgroup::"

0 commit comments

Comments
 (0)