Skip to content

Commit 686ccb3

Browse files
committed
xsse download
1 parent eac717a commit 686ccb3

3 files changed

Lines changed: 27 additions & 1 deletion

File tree

.github/scripts/download-bundled/make-workflow-file.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
$bundles = [
99
new Bundle('boost.context', ['Zend/asm']),
10+
new Bundle('XSSE', ['Zend/zend_simd.h']),
1011
new Bundle('timelib', ['ext/date/lib']),
1112
new Bundle('Unicode Character Database', ['ext/mbstring']),
1213
new Bundle('PCRE2', ['ext/pcre/pcre2lib']),
@@ -165,7 +166,7 @@ protected function makeDornyPathsFilterFilters(Bundle $bundle): array
165166
{
166167
return [
167168
'.github/scripts/download-bundled/' . $bundle->getNameForPath() . '.*',
168-
...array_map(static fn ($v) => $v . '/**', $bundle->directories),
169+
...array_map(fn ($v) => is_file($this->getRepoDirectory() . '/' . $v) ? $v : $v . '/**', $bundle->directories),
169170
];
170171
}
171172

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/xsse
6+
rm -rf "$tmp_dir"
7+
8+
revision=refs/tags/xsse-1.0.0
9+
10+
git clone --depth 1 --revision="$revision" https://github.com/SakiTakamachi/xsse.git "$tmp_dir"
11+
12+
cp -f "$tmp_dir"/src/xsse.h Zend/zend_simd.h

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
paths: &paths
66
- '.github/scripts/download-bundled/**'
77
- 'Zend/asm/**'
8+
- 'Zend/zend_simd.h'
89
- 'ext/date/lib/**'
910
- 'ext/mbstring/**'
1011
- 'ext/pcre/pcre2lib/**'
@@ -36,6 +37,9 @@ jobs:
3637
'boost-context':
3738
- '.github/scripts/download-bundled/boost-context.*'
3839
- 'Zend/asm/**'
40+
xsse:
41+
- '.github/scripts/download-bundled/xsse.*'
42+
- 'Zend/zend_simd.h'
3943
timelib:
4044
- '.github/scripts/download-bundled/timelib.*'
4145
- 'ext/date/lib/**'
@@ -58,6 +62,15 @@ jobs:
5862
echo "::group::Verify files"
5963
.github/scripts/test-directory-unchanged.sh 'Zend/asm'
6064
echo "::endgroup::"
65+
- name: XSSE
66+
if: ${{ !cancelled() && (steps.changes.outputs.xsse == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') }}
67+
run: |
68+
echo "::group::Download"
69+
.github/scripts/download-bundled/xsse.sh
70+
echo "::endgroup::"
71+
echo "::group::Verify files"
72+
.github/scripts/test-directory-unchanged.sh 'Zend/zend_simd.h'
73+
echo "::endgroup::"
6174
- name: timelib
6275
if: ${{ !cancelled() && (steps.changes.outputs.timelib == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') }}
6376
run: |

0 commit comments

Comments
 (0)