Commit fabae632276 for php
commit fabae632276e92e836bef9937497b96c5489c5a4
Author: Michael Voříšek <mvorisek@mvorisek.cz>
Date: Thu Oct 15 15:15:28 2026 +0200
Verify bundled sources using CI - xxHash (#24243)
diff --git a/.github/scripts/download-bundled/xxhash.sh b/.github/scripts/download-bundled/xxhash.sh
new file mode 100755
index 00000000000..fc0c7eb7b30
--- /dev/null
+++ b/.github/scripts/download-bundled/xxhash.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+set -ex
+cd "$(dirname "$0")/../../.."
+
+tmp_dir=/tmp/php-src-download-bundled/xxhash
+rm -rf "$tmp_dir"
+
+revision=refs/tags/v0.8.2
+
+git clone --depth 1 --revision="$revision" https://github.com/Cyan4973/xxHash.git "$tmp_dir"
+
+cp -f "$tmp_dir"/xxhash.h ext/hash/xxhash/xxhash.h
diff --git a/.github/workflows/verify-bundled-files.yml b/.github/workflows/verify-bundled-files.yml
index f3631747311..5b0089139e4 100644
--- a/.github/workflows/verify-bundled-files.yml
+++ b/.github/workflows/verify-bundled-files.yml
@@ -6,6 +6,7 @@ on:
- '.github/scripts/download-bundled/**'
- 'Zend/asm/**'
- 'ext/opcache/jit/ir/**'
+ - 'ext/hash/xxhash/**'
- 'ext/pcre/pcre2lib/**'
- 'ext/uri/uriparser/**'
pull_request:
@@ -38,6 +39,9 @@ jobs:
'jit-ir':
- '.github/scripts/download-bundled/jit-ir.*'
- 'ext/opcache/jit/ir/**'
+ xxhash:
+ - '.github/scripts/download-bundled/xxhash.*'
+ - 'ext/hash/xxhash/**'
pcre2:
- '.github/scripts/download-bundled/pcre2.*'
- 'ext/pcre/pcre2lib/**'
@@ -63,6 +67,15 @@ jobs:
echo "::group::Verify files"
.github/scripts/test-directory-unchanged.sh 'ext/opcache/jit/ir'
echo "::endgroup::"
+ - name: xxHash
+ if: ${{ !cancelled() && (steps.changes.outputs.xxhash == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') }}
+ run: |
+ echo "::group::Download"
+ .github/scripts/download-bundled/xxhash.sh
+ echo "::endgroup::"
+ echo "::group::Verify files"
+ .github/scripts/test-directory-unchanged.sh 'ext/hash/xxhash'
+ echo "::endgroup::"
- name: PCRE2
if: ${{ !cancelled() && (steps.changes.outputs.pcre2 == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') }}
run: |