diff --git a/.github/scripts/download-bundled/xsse.sh b/.github/scripts/download-bundled/xsse.sh new file mode 100755 index 000000000000..1e2c94d9366f --- /dev/null +++ b/.github/scripts/download-bundled/xsse.sh @@ -0,0 +1,12 @@ +#!/bin/sh +set -ex +cd "$(dirname "$0")/../../.." + +tmp_dir=/tmp/php-src-download-bundled/xsse +rm -rf "$tmp_dir" + +revision=refs/tags/xsse-1.0.0 + +git clone --depth 1 --revision="$revision" https://github.com/SakiTakamachi/xsse.git "$tmp_dir" + +cp -f "$tmp_dir"/src/xsse.h Zend/zend_simd.h diff --git a/.github/workflows/verify-bundled-files.yml b/.github/workflows/verify-bundled-files.yml index f36317473110..0eaf19bb9f51 100644 --- a/.github/workflows/verify-bundled-files.yml +++ b/.github/workflows/verify-bundled-files.yml @@ -5,6 +5,7 @@ on: paths: &paths - '.github/scripts/download-bundled/**' - 'Zend/asm/**' + - 'Zend/zend_simd.h' - 'ext/opcache/jit/ir/**' - 'ext/pcre/pcre2lib/**' - 'ext/uri/uriparser/**' @@ -35,6 +36,9 @@ jobs: 'boost-context': - '.github/scripts/download-bundled/boost-context.*' - 'Zend/asm/**' + xsse: + - '.github/scripts/download-bundled/xsse.*' + - 'Zend/zend_simd.h' 'jit-ir': - '.github/scripts/download-bundled/jit-ir.*' - 'ext/opcache/jit/ir/**' @@ -54,6 +58,15 @@ jobs: echo "::group::Verify files" .github/scripts/test-directory-unchanged.sh Zend/asm echo "::endgroup::" + - name: XSSE + if: ${{ !cancelled() && (steps.changes.outputs.xsse == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') }} + run: | + echo "::group::Download" + .github/scripts/download-bundled/xsse.sh + echo "::endgroup::" + echo "::group::Verify files" + .github/scripts/test-directory-unchanged.sh 'Zend/zend_simd.h' + echo "::endgroup::" - name: 'JIT IR' if: ${{ !cancelled() && (steps.changes.outputs.jit-ir == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') }} run: |