Skip to content

Commit cd2c4c9

Browse files
committed
xxHash download
1 parent 4e131c0 commit cd2c4c9

2 files changed

Lines changed: 25 additions & 3 deletions

File tree

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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- '.github/scripts/download-bundled/**'
77
- 'Zend/asm/**'
88
- 'ext/opcache/jit/ir/**'
9+
- 'ext/hash/xxhash/**'
910
- 'ext/pcre/pcre2lib/**'
1011
- 'ext/uri/uriparser/**'
1112
pull_request:
@@ -35,9 +36,9 @@ jobs:
3536
'boost-context':
3637
- '.github/scripts/download-bundled/boost-context.*'
3738
- 'Zend/asm/**'
38-
'jit-ir':
39-
- '.github/scripts/download-bundled/jit-ir.*'
40-
- 'ext/opcache/jit/ir/**'
39+
xxhash:
40+
- '.github/scripts/download-bundled/xxhash.*'
41+
- 'ext/hash/xxhash/**'
4142
pcre2:
4243
- '.github/scripts/download-bundled/pcre2.*'
4344
- 'ext/pcre/pcre2lib/**'
@@ -63,6 +64,15 @@ jobs:
6364
echo "::group::Verify files"
6465
.github/scripts/test-directory-unchanged.sh 'ext/opcache/jit/ir'
6566
echo "::endgroup::"
67+
- name: xxHash
68+
if: ${{ !cancelled() && (steps.changes.outputs.xxhash == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') }}
69+
run: |
70+
echo "::group::Download"
71+
.github/scripts/download-bundled/xxhash.sh
72+
echo "::endgroup::"
73+
echo "::group::Verify files"
74+
.github/scripts/test-directory-unchanged.sh 'ext/hash/xxhash'
75+
echo "::endgroup::"
6676
- name: PCRE2
6777
if: ${{ !cancelled() && (steps.changes.outputs.pcre2 == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') }}
6878
run: |

0 commit comments

Comments
 (0)