Skip to content

Commit a3d9f62

Browse files
committed
add download for boost.context
1 parent 3d96ddd commit a3d9f62

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-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
@@ -6,6 +6,7 @@
66
namespace Phpsrc\Ci\DownloadBundled;
77

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

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
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: |

0 commit comments

Comments
 (0)