Skip to content

Commit 1103f56

Browse files
committed
xxHash download
1 parent 686ccb3 commit 1103f56

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-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
@@ -9,6 +9,7 @@
99
new Bundle('boost.context', ['Zend/asm']),
1010
new Bundle('XSSE', ['Zend/zend_simd.h']),
1111
new Bundle('timelib', ['ext/date/lib']),
12+
new Bundle('xxHash', ['ext/hash/xxhash']),
1213
new Bundle('Unicode Character Database', ['ext/mbstring']),
1314
new Bundle('PCRE2', ['ext/pcre/pcre2lib']),
1415
new Bundle('uriparser', ['ext/uri/uriparser']),
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/sh
2+
set -ex
3+
cd "$(dirname "$0")/../../.."
4+
5+
tmp_dir=/tmp/php-src-download-bundled/xxhash
6+
rm -rf "$tmp_dir"
7+
8+
revision=refs/tags/v0.8.2
9+
10+
git clone --depth 1 --revision="$revision" https://github.com/Cyan4973/xxHash.git "$tmp_dir"
11+
12+
cp -f "$tmp_dir"/xxhash.h ext/hash/xxhash/xxhash.h

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
- 'Zend/asm/**'
88
- 'Zend/zend_simd.h'
99
- 'ext/date/lib/**'
10+
- 'ext/hash/xxhash/**'
1011
- 'ext/mbstring/**'
1112
- 'ext/pcre/pcre2lib/**'
1213
- 'ext/uri/uriparser/**'
@@ -43,6 +44,9 @@ jobs:
4344
timelib:
4445
- '.github/scripts/download-bundled/timelib.*'
4546
- 'ext/date/lib/**'
47+
xxhash:
48+
- '.github/scripts/download-bundled/xxhash.*'
49+
- 'ext/hash/xxhash/**'
4650
'unicode-character-database':
4751
- '.github/scripts/download-bundled/unicode-character-database.*'
4852
- 'ext/mbstring/**'
@@ -80,6 +84,15 @@ jobs:
8084
echo "::group::Verify files"
8185
.github/scripts/test-directory-unchanged.sh 'ext/date/lib'
8286
echo "::endgroup::"
87+
- name: xxHash
88+
if: ${{ !cancelled() && (steps.changes.outputs.xxhash == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') }}
89+
run: |
90+
echo "::group::Download"
91+
.github/scripts/download-bundled/xxhash.sh
92+
echo "::endgroup::"
93+
echo "::group::Verify files"
94+
.github/scripts/test-directory-unchanged.sh 'ext/hash/xxhash'
95+
echo "::endgroup::"
8396
- name: 'Unicode Character Database'
8497
if: ${{ !cancelled() && (steps.changes.outputs.unicode-character-database == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') }}
8598
run: |

0 commit comments

Comments
 (0)