Skip to content

Commit 4849c41

Browse files
committed
merge code
2 parents a6ee808 + 6217617 commit 4849c41

3 files changed

Lines changed: 27 additions & 7 deletions

File tree

.github/workflows/windows-cygwin.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ jobs:
6969
shell: C:\cygwin\bin\bash.EXE --noprofile --norc -e -o pipefail -o igncr {0}
7070
run: |
7171
bash ./sapi/scripts/cygwin/install-re2c.sh
72+
bash sapi/download-box/download-box-get-archive-from-server.sh
7273
7374
- name: install deps lib with source code
7475
shell: C:\cygwin\bin\bash.EXE --noprofile --norc -e -o pipefail -o igncr {0}

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

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,15 @@ 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-
ALL_DEPS_HASH="a55699ecee994032f33266dfa37eabb49f1f6d6b6b65cdcf7b881cac09c63bea"
23+
DOMAIN="https://github.com/swoole/swoole-cli/releases/download/${SWOOLE_CLI_RELEASE_VERSION}/"
2224

23-
DOMAIN='https://github.com/swoole/swoole-cli/releases/download/v6.0.0.0/'
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
2429

2530
while [ $# -gt 0 ]; do
2631
case "$1" in
@@ -29,6 +34,21 @@ while [ $# -gt 0 ]; do
2934
DOMAIN='https://swoole-cli.jingjingxyk.com/'
3035
fi
3136
;;
37+
--proxy)
38+
export HTTP_PROXY="$2"
39+
export HTTPS_PROXY="$2"
40+
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"
41+
NO_PROXY="${NO_PROXY},::1/128,fe80::/10,fd00::/8,ff00::/8"
42+
NO_PROXY="${NO_PROXY},localhost"
43+
NO_PROXY="${NO_PROXY},.aliyuncs.com,.aliyun.com"
44+
NO_PROXY="${NO_PROXY},.tsinghua.edu.cn,.ustc.edu.cn"
45+
NO_PROXY="${NO_PROXY},.tencent.com"
46+
NO_PROXY="${NO_PROXY},ftpmirror.gnu.org"
47+
NO_PROXY="${NO_PROXY},gitee.com,gitcode.com"
48+
NO_PROXY="${NO_PROXY},.myqcloud.com,.swoole.com"
49+
NO_PROXY="${NO_PROXY},.jingjingxyk.com,jingjingxyk.cn"
50+
export NO_PROXY="${NO_PROXY},.npmmirror.com"
51+
;;
3252
--*)
3353
echo "Illegal option $1"
3454
;;

sapi/src/template/make.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -275,12 +275,12 @@
275275
export_variables
276276
<?php if ($this->isLinux()) : ?>
277277
export CFLAGS="$CFLAGS "
278-
export LDFLAGS="$LDFLAGS -static -all-static "
279-
<?php if($this->getInputOption('with-static-pie')) : ?>
278+
export LDFLAGS="$LDFLAGS -static -all-static"
279+
<?php if ($this->getInputOption('with-static-pie')) : ?>
280280
export CFLAGS="$CFLAGS -fPIE"
281281
export LDFLAGS="$LDFLAGS -static-pie"
282-
<?php endif ;?>
283-
<?php endif ;?>
282+
<?php endif ; ?>
283+
<?php endif ; ?>
284284
export LDFLAGS="$LDFLAGS <?= $this->extraLdflags ?>"
285285
export EXTRA_CFLAGS='<?= $this->extraCflags ?>'
286286
<?php if(!empty($this->httpProxy)) : ?>
@@ -303,7 +303,6 @@
303303
{ readelf -l <?= $this->getWorkDir() ?>/bin/swoole-cli ; } || { echo $? ; }
304304
{ objdump -p <?= $this->getWorkDir() ?>/bin/swoole-cli ; } || { echo $? ; }
305305
<?php endif; ?>
306-
307306
}
308307

309308
make_archive() {

0 commit comments

Comments
 (0)