Skip to content

Commit 4dd7154

Browse files
authored
Merge pull request #1005 from jingjingxyk/experiment-feature
Experiment feature
2 parents 370252d + 78a02a4 commit 4dd7154

7 files changed

Lines changed: 90 additions & 40 deletions

File tree

.github/workflows/windows-cygwin.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,6 @@ jobs:
3434
ipconfig /all
3535
# git submodule update --init
3636
37-
- name: Cache cygwin packages
38-
id: cache-cygwin
39-
uses: actions/cache@v4
40-
env:
41-
cache-name: cache-cygwin-packages
42-
with:
43-
path: C:\cygwin-packages
44-
key: ${{ runner.os }}-build-${{ env.cache-name }}
45-
4637
- name: Cache pool
4738
id: cache-cygwin-pool
4839
uses: actions/cache@v4

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
- [Swoole-Cli v5.0.1 使用说明](https://wenda.swoole.com/detail/108876)
2323
- [Swoole-Cli v5.0.0 版本新特性预览之新的运行模式](https://wenda.swoole.com/detail/108706)
2424
- [Swoole-Cli 已提供 Windows 平台 (cygwin64)支持](https://wenda.swoole.com/detail/108743)
25-
- [Swoole RFC ](https://github.com/swoole/rfc/)
2625
- [Swoole v6.1 将提供 typed array 强类型数组实现,增强 PHP 标准库](https://mp.weixin.qq.com/s/yFuxYdNMqxI1VuZg0J07Wg)
2726
- [Swoole v6 2024 重磅更新:Swoole v6 正式发布,增加 16 项新功能](https://mp.weixin.qq.com/s/Ks1x1LNTLdl5jk0sIS6V_w)
2827
- [Swoole v6 协程是否支持 PHP 的 JIT ](https://mp.weixin.qq.com/s/Tm-6XVGQSlz0vDENLB3ylA)
@@ -45,6 +44,8 @@
4544
- [Swoole v6 即将增加多线程支持](https://zhuanlan.zhihu.com/p/688462525)
4645
- [phpy:连接 PHP 与 Python 互调用库,为 PHP 引入 Python 生态,PHP 也可以写 AI 了](https://zhuanlan.zhihu.com/p/670373512)
4746

47+
## [常见问题解答](https://github.com/swoole/swoole-cli/blob/main/docs/FAQ.md)
48+
4849
## 下载`swoole-cli`发行版
4950

5051
- [https://www.swoole.com/download](https://www.swoole.com/download) (recommend)

docs/ChangeLog.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# [v6.1.0.0-rc1](https://github.com/swoole/swoole-cli/releases/tag/v6.1.0.0-rc1)
2+
3+
| item | value |
4+
|----------------|--------------|
5+
| branch | main |
6+
| tag | v6.1.0.0-rc1 |
7+
| swoole version | v6.1.0-rc1 |
8+
| php version | 8.1.29 |
9+
| release date | 2025-08-31 |
10+
| status | ok |
11+
12+
## [change info](https://github.com/swoole/swoole-cli/compare/v6.0.2.0...v6.1.0.0-rc1)
13+
14+
1. swoole version v6.0.2.0 upgrade to
15+
v6.1.0.0-rc1 , [swoole v6.1.0-rc1 info](https://github.com/swoole/swoole-src/releases/tag/v6.1.0-rc1)
16+
17+
# [v5.1.8.0](https://github.com/swoole/swoole-cli/releases/tag/v5.1.8.0)
18+
19+
| item | value |
20+
|----------------|------------|
21+
| branch | v5.1.x |
22+
| tag | v5.1.8.0 |
23+
| swoole version | v5.1.8 |
24+
| php version | 8.1.29 |
25+
| release date | 2025-08-23 |
26+
| status | ok |
27+
28+
## [change info](https://github.com/swoole/swoole-cli/compare/v5.1.7.0...v5.1.8.0)
29+
30+
1. swoole version v5.1.7 upgrade to
31+
v5.1.8 , [swoole v5.1.8 info](https://github.com/swoole/swoole-src/releases/tag/v5.1.8)
32+
33+
34+

docs/FAQ.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
## download swoole-cli
2+
3+
```shell
4+
5+
curl -fSL https://github.com/swoole/swoole-cli/blob/main/setup-swoole-cli-runtime.sh?raw=true | bash -s -- --version v5.1.8.0
6+
7+
# from https://www.swoole.com/download
8+
curl -fSL https://github.com/swoole/swoole-cli/blob/main/setup-swoole-cli-runtime.sh?raw=true | bash -s -- --version v5.1.8.0 --mirror china
9+
10+
```
11+
12+
## 备注: macos环境下 首次运行提示无权限 ,解决方法
13+
14+
note : macos clearing the com.apple.quarantine extended attribute
15+
16+
```
17+
xattr ./runtime/swoole-cli/swoole-cli
18+
19+
sudo xattr -rd com.apple.quarantine ./runtime/swoole-cli/swoole-cli
20+
21+
```
22+

sapi/scripts/tencent-cloud-object-storage.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ test -f ${APP_RUNTIME} || curl -fSLo ${APP_RUNTIME} https://github.com/tencentyu
116116
chmod a+x ${APP_RUNTIME}
117117

118118
BUCKET_NAME=$(grep "\- name: " ${CLOUD_OBJECT_STORAGE_CONFIG} | sed 's/\- name: //g' | sed 's/^ *//;s/ *$//' | tr -d '"')
119-
COSCLI="${__PROJECT__}/var/tencent-cloud-object-storage/${APP_RUNTIME} --config-path ${CLOUD_OBJECT_STORAGE_CONFIG} --log-path ${__PROJECT__}/var/tencent-cloud-object-storage/coscli.log "
119+
COSCLI="${__PROJECT__}/var/tencent-cloud-object-storage/${APP_RUNTIME} --config-path ${CLOUD_OBJECT_STORAGE_CONFIG} --log-path ${__PROJECT__}/var/tencent-cloud-object-storage/"
120120
COS_BUCKET_FOLDER="cos://${BUCKET_NAME}/dist/"
121121

122122
if [ "${UPLOAD_TYPE}" == 'all' ]; then
@@ -135,17 +135,17 @@ set -u
135135
if [ "${UPLOAD_TYPE}" == 'all' ]; then
136136
SWOOLE_VERSION=$(echo ${SWOOLE_CLI_VERSION} | awk -F '.' '{ printf "%s.%s.%s" ,$1,$2,$3 }')
137137
cd ${__PROJECT__}/var/artifact-hash/${SWOOLE_CLI_VERSION}
138-
${COSCLI} sync swoole-cli-${SWOOLE_VERSION}-cygwin-x64.zip ${COS_BUCKET_FOLDER}
139-
${COSCLI} sync swoole-cli-${SWOOLE_VERSION}-linux-arm64.tar.xz ${COS_BUCKET_FOLDER}
140-
${COSCLI} sync swoole-cli-${SWOOLE_VERSION}-linux-x64.tar.xz ${COS_BUCKET_FOLDER}
141-
${COSCLI} sync swoole-cli-${SWOOLE_VERSION}-macos-arm64.tar.xz ${COS_BUCKET_FOLDER}
142-
${COSCLI} sync swoole-cli-${SWOOLE_VERSION}-macos-x64.tar.xz ${COS_BUCKET_FOLDER}
138+
${COSCLI} cp swoole-cli-${SWOOLE_VERSION}-cygwin-x64.zip ${COS_BUCKET_FOLDER}
139+
${COSCLI} cp swoole-cli-${SWOOLE_VERSION}-linux-arm64.tar.xz ${COS_BUCKET_FOLDER}
140+
${COSCLI} cp swoole-cli-${SWOOLE_VERSION}-linux-x64.tar.xz ${COS_BUCKET_FOLDER}
141+
${COSCLI} cp swoole-cli-${SWOOLE_VERSION}-macos-arm64.tar.xz ${COS_BUCKET_FOLDER}
142+
${COSCLI} cp swoole-cli-${SWOOLE_VERSION}-macos-x64.tar.xz ${COS_BUCKET_FOLDER}
143143
cd ${__PROJECT__}
144144
exit 0
145145
fi
146146

147147
if [ "${UPLOAD_TYPE}" == 'single' ]; then
148-
${COSCLI} sync ${UPLOAD_FILE} ${COS_BUCKET_FOLDER}
148+
${COSCLI} cp ${UPLOAD_FILE} ${COS_BUCKET_FOLDER}
149149
exit 0
150150
fi
151151

sapi/src/builder/enabled_extensions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@
4141
'uuid',
4242
'xlswriter',
4343
'gettext',
44-
'phpy'
44+
# 'phpy'
4545
];

sapi/src/builder/library/freetype.php

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
return function (Preprocessor $p) {
77
$freetype_prefix = FREETYPE_PREFIX;
88
$bzip2_prefix = BZIP2_PREFIX;
9+
$zlib_prefix = ZLIB_PREFIX;
10+
$libpng_prefix = PNG_PREFIX;
11+
$brotli_prefix = BROTLI_PREFIX;
912
$p->addLibrary(
1013
(new Library('freetype'))
1114
->withHomePage('https://freetype.org/')
@@ -14,31 +17,30 @@
1417
'https://gitlab.freedesktop.org/freetype/freetype/-/blob/master/docs/GPLv2.TXT',
1518
Library::LICENSE_GPL
1619
)
17-
->withUrl('https://sourceforge.net/projects/freetype/files/freetype2/2.13.2/freetype-2.13.2.tar.gz')
18-
->withMd5sum('d99447cf00c5f2679918f66f2b5771f6')
19-
->withFileHash('md5', 'd99447cf00c5f2679918f66f2b5771f6')
20+
->withUrl('https://github.com/freetype/freetype/archive/refs/tags/VER-2-13-2.tar.gz')
21+
->withFile('freetype-2.13.2.tar.gz')
22+
->withMd5sum('dcd1af080e43fe0c984c34bf3e7d5e16')
23+
->withFileHash('md5', 'dcd1af080e43fe0c984c34bf3e7d5e16')
2024
->withPrefix($freetype_prefix)
21-
->withConfigure(
25+
->withBuildCached(false)
26+
->withBuildScript(
2227
<<<EOF
23-
./configure --help
24-
PACKAGES='zlib libpng libbrotlicommon libbrotlienc libbrotlidec '
25-
BZIP2_CFLAGS="-I{$bzip2_prefix}/include" \
26-
BZIP2_LIBS="-L{$bzip2_prefix}/lib -lbz2" \
27-
CPPFLAGS="$(pkg-config --cflags-only-I --static \$PACKAGES)" \
28-
LDFLAGS="$(pkg-config --libs-only-L --static \$PACKAGES)" \
29-
LIBS="$(pkg-config --libs-only-l --static \$PACKAGES)" \
30-
CFLAGS="-std=gnu11" \
31-
./configure \
32-
--prefix={$freetype_prefix} \
33-
--enable-shared=no \
34-
--enable-static=yes \
35-
--with-zlib=yes \
36-
--with-bzip2=yes \
37-
--with-png=yes \
38-
--with-harfbuzz=no \
39-
--with-brotli=yes \
40-
--enable-freetype-config
28+
mkdir -p build
29+
cd build
30+
cmake .. \
31+
-DCMAKE_INSTALL_PREFIX={$freetype_prefix} \
32+
-DCMAKE_BUILD_TYPE=Release \
33+
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
34+
-DBUILD_SHARED_LIBS=OFF \
35+
-DBUILD_STATIC_LIBS=ON \
36+
-DFT_REQUIRE_ZLIB=TRUE \
37+
-DFT_REQUIRE_BZIP2=TRUE \
38+
-DFT_REQUIRE_BROTLI=TRUE \
39+
-DFT_REQUIRE_PNG=TRUE \
40+
-DFT_DISABLE_HARFBUZZ=TRUE \
41+
-DCMAKE_PREFIX_PATH="{$zlib_prefix};{$bzip2_prefix};{$libpng_prefix};{$brotli_prefix}"
4142
43+
cmake --build . --target install
4244
EOF
4345
)
4446
->withPkgName('freetype2')

0 commit comments

Comments
 (0)