From 0db24855f18fcc258b284993b900fedfde89db0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Sat, 10 Oct 2026 17:16:04 +0200 Subject: [PATCH] xxHash download --- .github/scripts/download-bundled/xxhash.sh | 12 ++++++++++++ .github/workflows/verify-bundled-files.yml | 13 +++++++++++++ 2 files changed, 25 insertions(+) create mode 100755 .github/scripts/download-bundled/xxhash.sh diff --git a/.github/scripts/download-bundled/xxhash.sh b/.github/scripts/download-bundled/xxhash.sh new file mode 100755 index 000000000000..fc0c7eb7b302 --- /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 f36317473110..5b0089139e41 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: |