Skip to content

Commit bcac56b

Browse files
committed
add download for boost.context
1 parent 0a3c2fe commit bcac56b

File tree

3 files changed

+51
-0
lines changed

3 files changed

+51
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
namespace Phpsrc\Ci\DownloadBundled;
66

77
$bundles = [
8+
new Bundle('boost.context', ['Zend/asm']),
89
new Bundle('PCRE2', ['ext/pcre/pcre2lib']),
910
];
1011

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,22 @@ jobs:
2828
with:
2929
base: master
3030
filters: |
31+
'boost-context':
32+
- '.github/scripts/download-bundled/boost-context.*'
33+
- 'Zend/asm/**'
3134
pcre2:
3235
- '.github/scripts/download-bundled/pcre2.*'
3336
- 'ext/pcre/pcre2lib/**'
3437
38+
- name: 'boost.context'
39+
if: ${{ !cancelled() && (steps.changes.outputs.pcre2 == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') }}
40+
run: |
41+
echo "::group::Download"
42+
.github/scripts/download-bundled/boost-context.sh
43+
echo "::endgroup::"
44+
echo "::group::Verify files"
45+
.github/scripts/test-directory-unchanged.sh "Zend/asm"
46+
echo "::endgroup::"
3547
- name: PCRE2
3648
if: ${{ !cancelled() && (steps.changes.outputs.pcre2 == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') }}
3749
run: |

0 commit comments

Comments
 (0)