Skip to content

Commit 6204558

Browse files
committed
merge code
2 parents 2a79f8f + accba2b commit 6204558

10 files changed

Lines changed: 45 additions & 308 deletions

File tree

.github/workflows/linux-aarch64.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ jobs:
1414
php-version:
1515
- "8.2.29"
1616
- "8.1.33"
17-
- "8.3.23"
18-
- "8.4.10"
17+
- "8.3.28"
18+
- "8.4.15"
19+
# - "8.5.0"
1920
steps:
2021
- uses: actions/checkout@v4
2122
- name: Show Environment Info

.github/workflows/linux-x86_64.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ jobs:
5151
php-version:
5252
- "8.2.29"
5353
- "8.1.33"
54-
- "8.3.23"
55-
- "8.4.10"
54+
- "8.3.28"
55+
- "8.4.15"
56+
# - "8.5.0"
5657
steps:
5758
- uses: actions/checkout@v4
5859
- name: Show Environment Info

.github/workflows/macos-aarch64.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
php-version:
1919
- "8.2.29"
2020
- "8.1.33"
21-
- "8.3.23"
22-
- "8.4.10"
23-
21+
- "8.3.28"
22+
- "8.4.15"
23+
# - "8.5.0"
2424
steps:
2525
- uses: actions/checkout@v4
2626
- name: Show Environment Info

.github/workflows/macos-x86_64.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ jobs:
2121
php-version:
2222
- "8.2.29"
2323
- "8.1.33"
24-
- "8.3.23"
25-
- "8.4.10"
24+
- "8.3.28"
25+
- "8.4.15"
26+
# - "8.5.0"
2627
steps:
2728
- uses: actions/checkout@v4
2829
- name: Show Environment Info

.github/workflows/windows-cygwin.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ jobs:
1616
php-version:
1717
- "8.2.29"
1818
- "8.1.33"
19-
- "8.3.23"
20-
- "8.4.10"
19+
- "8.3.28"
20+
- "8.4.15"
21+
# - "8.5.0"
2122
steps:
2223
- name: Show Environment Info
2324
shell: cmd
@@ -82,6 +83,7 @@ jobs:
8283
shell: C:\cygwin\bin\bash.EXE --noprofile --norc -e -o pipefail -o igncr {0}
8384
run: |
8485
bash ./sapi/scripts/cygwin/install-re2c.sh
86+
bash sapi/download-box/download-box-get-archive-from-server.sh
8587
8688
- name: install deps lib with source code
8789
shell: C:\cygwin\bin\bash.EXE --noprofile --norc -e -o pipefail -o igncr {0}

.github/workflows/windows-msys2.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ jobs:
1616
php-version:
1717
- "8.2.29"
1818
# - "8.1.33"
19-
- "8.3.23"
20-
- "8.4.10"
19+
- "8.3.28"
20+
- "8.4.15"
21+
# - "8.5.0"
2122
steps:
2223
- name: Show Environment Info
2324
shell: cmd

sapi/SWOOLE-VERSION.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v6.1.1
1+
v6.1.3

sapi/download-box/download-box-get-archive-from-server.sh

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,21 @@ mkdir -p pool/ext
1717
mkdir -p ${__PROJECT__}/var/download-box/
1818

1919
cd ${__PROJECT__}/var/download-box/
20+
SWOOLE_CLI_RELEASE_VERSION="v6.1.1.1"
21+
ALL_DEPS_HASH="39983e8b050bfc31265b6c385220026d58ebb04f72cba3ff9f461c97b546e25a"
2022

21-
if [ -f "${__PROJECT__}/sapi/PHP-VERSION.conf" ]; then
22-
DOMAIN='https://github.com/swoole/swoole-cli/releases/download/v6.0.0.0/'
23-
ALL_DEPS_HASH="a55699ecee994032f33266dfa37eabb49f1f6d6b6b65cdcf7b881cac09c63bea"
24-
else
23+
DOMAIN="https://github.com/swoole/swoole-cli/releases/download/${SWOOLE_CLI_RELEASE_VERSION}/"
24+
25+
# show sha256sum
26+
# curl -fSL https://github.com/swoole/swoole-cli/releases/download/v6.1.1.1/all-deps.zip.sha256sum && echo
27+
# download command
28+
# curl -fSLo all-deps.zip https://github.com/swoole/swoole-cli/releases/download/v6.1.1.1/all-deps.zip
29+
30+
if [ ! -f "${__PROJECT__}/sync-source-code.php" ]; then
2531
# show sha256sum
26-
# curl -LS https://github.com/swoole/build-static-php/releases/download/v1.10.0/all-deps.zip.sha256sum | cat
27-
DOMAIN='https://github.com/swoole/build-static-php/releases/download/v1.10.0/'
28-
ALL_DEPS_HASH="62681e789de493c6aee51c9b5ad7ee9c37684ac6b2bb867e086f6ca9c70bca44"
32+
# curl -fSL https://github.com/swoole/build-static-php/releases/download/v1.11.0/all-deps.zip.sha256sum && echo
33+
DOMAIN='https://github.com/swoole/build-static-php/releases/download/v1.11.0/'
34+
ALL_DEPS_HASH="6b96e505c066c1a628d05b899edd81b237ce78a617f2c754df227bfcb3a8a4a5"
2935
fi
3036

3137
DOWNLOAD_ARCHIVE=0
@@ -34,7 +40,7 @@ while [ $# -gt 0 ]; do
3440
--mirror)
3541
if [ "$2" = 'china' ]; then
3642
DOMAIN='https://swoole-cli.jingjingxyk.com/'
37-
if [ ! -f "${__PROJECT__}/sapi/PHP-VERSION.conf" ]; then
43+
if [ ! -f "${__PROJECT__}/sync-source-code.php" ]; then
3844
DOMAIN='https://php-cli.jingjingxyk.com/'
3945
fi
4046
fi
@@ -48,9 +54,14 @@ while [ $# -gt 0 ]; do
4854
NO_PROXY="127.0.0.0/8,10.0.0.0/8,100.64.0.0/10,172.16.0.0/12,192.168.0.0/16"
4955
NO_PROXY="${NO_PROXY},::1/128,fe80::/10,fd00::/8,ff00::/8"
5056
NO_PROXY="${NO_PROXY},localhost"
51-
NO_PROXY="${NO_PROXY},.aliyuncs.com,.aliyun.com,.tencent.com"
57+
NO_PROXY="${NO_PROXY},.aliyuncs.com,.aliyun.com"
58+
NO_PROXY="${NO_PROXY},.tsinghua.edu.cn,.ustc.edu.cn"
59+
NO_PROXY="${NO_PROXY},.tencent.com"
60+
NO_PROXY="${NO_PROXY},ftpmirror.gnu.org"
61+
NO_PROXY="${NO_PROXY},gitee.com,gitcode.com"
5262
NO_PROXY="${NO_PROXY},.myqcloud.com,.swoole.com"
53-
export NO_PROXY="${NO_PROXY},.tsinghua.edu.cn,.ustc.edu.cn,.npmmirror.com"
63+
NO_PROXY="${NO_PROXY},.jingjingxyk.com,jingjingxyk.cn"
64+
export NO_PROXY="${NO_PROXY},.npmmirror.com"
5465
;;
5566
--*)
5667
echo "Illegal option $1"

sapi/src/template/make.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -354,12 +354,12 @@
354354
export_variables
355355
<?php if ($this->isLinux()) : ?>
356356
export CFLAGS="$CFLAGS "
357-
export LDFLAGS="$LDFLAGS -static -all-static "
358-
<?php if($this->getInputOption('with-static-pie')) : ?>
357+
export LDFLAGS="$LDFLAGS -static -all-static"
358+
<?php if ($this->getInputOption('with-static-pie')) : ?>
359359
export CFLAGS="$CFLAGS -fPIE"
360360
export LDFLAGS="$LDFLAGS -static-pie"
361-
<?php endif ;?>
362-
<?php endif ;?>
361+
<?php endif ; ?>
362+
<?php endif ; ?>
363363
export LDFLAGS="$LDFLAGS <?= $this->extraLdflags ?>"
364364
export EXTRA_CFLAGS='<?= $this->extraCflags ?>'
365365
<?php if(!empty($this->httpProxy)) : ?>

0 commit comments

Comments
 (0)