File tree Expand file tree Collapse file tree 3 files changed +51
-0
lines changed Expand file tree Collapse file tree 3 files changed +51
-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 55namespace Phpsrc \Ci \DownloadBundled ;
66
77$ bundles = [
8+ new Bundle ('boost.context ' , ['Zend/asm ' ]),
89 new Bundle ('PCRE2 ' , ['ext/pcre/pcre2lib ' ]),
910];
1011
Original file line number Diff line number Diff line change @@ -24,10 +24,22 @@ jobs:
2424 with :
2525 base : master
2626 filters : |
27+ 'boost-context':
28+ - '.github/scripts/download-bundled/boost-context.*'
29+ - 'Zend/asm/**'
2730 pcre2:
2831 - '.github/scripts/download-bundled/pcre2.*'
2932 - 'ext/pcre/pcre2lib/**'
3033
34+ - name : ' boost.context'
35+ if : ${{ !cancelled() && (steps.changes.outputs.pcre2 == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') }}
36+ run : |
37+ echo "::group::Download"
38+ .github/scripts/download-bundled/boost-context.sh
39+ echo "::endgroup::"
40+ echo "::group::Verify files"
41+ .github/scripts/test-directory-unchanged.sh "Zend/asm"
42+ echo "::endgroup::"
3143 - name : PCRE2
3244 if : ${{ !cancelled() && (steps.changes.outputs.pcre2 == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') }}
3345 run : |
You can’t perform that action at this time.
0 commit comments