File tree Expand file tree Collapse file tree 3 files changed +52
-0
lines changed
Expand file tree Collapse file tree 3 files changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ set -ex
3+ cd " $( dirname " $0 " ) /../../.."
4+
5+ revision=refs/tags/boost-1.86.0
6+
7+ git clone --depth 1 --revision=" $revision " https://github.com/boostorg/context.git /tmp/php-src-bundled/boost-context
8+
9+ rm -rf Zend/asm
10+ cp -R /tmp/php-src-bundled/boost-context/src/asm Zend/asm
11+
12+ cd Zend/asm
13+
14+ # remove unneeded files
15+ rm jump_arm_aapcs_pe_armasm.asm
16+ rm jump_i386_ms_pe_clang_gas.S
17+ rm jump_i386_ms_pe_gas.asm
18+ rm jump_i386_x86_64_sysv_macho_gas.S
19+ rm jump_ppc32_ppc64_sysv_macho_gas.S
20+ rm jump_x86_64_ms_pe_clang_gas.S
21+ rm make_arm_aapcs_pe_armasm.asm
22+ rm make_i386_ms_pe_clang_gas.S
23+ rm make_i386_ms_pe_gas.asm
24+ rm make_i386_x86_64_sysv_macho_gas.S
25+ rm make_ppc32_ppc64_sysv_macho_gas.S
26+ rm make_x86_64_ms_pe_clang_gas.S
27+ rm ontop_* .S
28+ rm ontop_* .asm
29+ rm tail_ontop_ppc32_sysv.cpp
30+
31+ # move renamed files
32+ # GH-13896 introduced these 2 files named as .S but since https://github.com/boostorg/context/pull/265 they are named as .asm
33+ mv jump_x86_64_ms_pe_gas.asm jump_x86_64_ms_pe_gas.S
34+ mv make_x86_64_ms_pe_gas.asm make_x86_64_ms_pe_gas.S
35+
36+ # add extra files
37+ git restore LICENSE
38+ git restore save_xmm_x86_64_ms_masm.asm # added in GH-18352, not an upstream boost.context file
Original file line number Diff line number Diff line change 66namespace Phpsrc \Ci \DownloadBundled ;
77
88$ bundles = [
9+ new Bundle ('boost.context ' , ['Zend/asm ' ]),
910 new Bundle ('PCRE2 ' , ['ext/pcre/pcre2lib ' ]),
1011];
1112
Original file line number Diff line number Diff line change 44 push :
55 paths : &paths
66 - ' .github/scripts/download-bundled/**'
7+ - ' Zend/asm/**'
78 - ' ext/pcre/pcre2lib/**'
89 pull_request :
910 paths : *paths
@@ -28,10 +29,22 @@ jobs:
2829 with :
2930 base : master
3031 filters : |
32+ 'boost-context':
33+ - '.github/scripts/download-bundled/boost-context.*'
34+ - 'Zend/asm/**'
3135 pcre2:
3236 - '.github/scripts/download-bundled/pcre2.*'
3337 - 'ext/pcre/pcre2lib/**'
3438
39+ - name : ' boost.context'
40+ if : ${{ !cancelled() && (steps.changes.outputs.boost-context == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') }}
41+ run : |
42+ echo "::group::Download"
43+ .github/scripts/download-bundled/boost-context.sh
44+ echo "::endgroup::"
45+ echo "::group::Verify files"
46+ .github/scripts/test-directory-unchanged.sh "Zend/asm"
47+ echo "::endgroup::"
3548 - name : PCRE2
3649 if : ${{ !cancelled() && (steps.changes.outputs.pcre2 == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') }}
3750 run : |
You can’t perform that action at this time.
0 commit comments