Skip to content

Commit

Permalink
Merge pull request #648 from jingjingxyk/experiment-webui
Browse files Browse the repository at this point in the history
Experiment 同步主分支
  • Loading branch information
jingjingxyk committed Jun 7, 2024
2 parents 1b88b56 + 8fa6161 commit 96f5dd5
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
1 change: 1 addition & 0 deletions .github/workflows/macos-aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jobs:
echo ${CURRENT_USER}
sudo mkdir -p /usr/local/swoole-cli
CURRENT_USER=$(whoami) && sudo chown -R ${CURRENT_USER}:staff /usr/local/swoole-cli
# git submodule update --init
- name: Cache PHP Runtime
Expand Down
12 changes: 8 additions & 4 deletions build-release-example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ fi

cd ${__PROJECT__}

if [ ! -d ext/swoole/.git ] ; then
git submodule update --init --recursive
fi

set -x

# shellcheck disable=SC2034
Expand Down Expand Up @@ -49,9 +53,9 @@ MIRROR=''

# 依赖库默认安装目录
LIBRARY_INSTALL_PREFIX=/usr/local/swoole-cli

OPTIONS=''


while [ $# -gt 0 ]; do
case "$1" in
--mirror)
Expand Down Expand Up @@ -97,7 +101,7 @@ done
# 构建环境依赖检查
CMDS_NUMS=0
CMDS=("flex" "pkg-config" "cmake" "re2c" "bison" "curl" "automake" "libtool" "clang" "xz" "zip" "unzip" "autoconf")
CMDS_ARRAY_LEN=${#CMDS[@]}
CMDS_LEN=${#CMDS[@]}
for cmd in "${CMDS[@]}"; do
if command -v "$cmd" >/dev/null 2>&1; then
# echo "$cmd exists"
Expand All @@ -108,7 +112,7 @@ done
if [ "$OS" = 'linux' ] ; then
if [ -f /.dockerenv ]; then
IN_DOCKER=1
if test $CMDS_ARRAY_LEN -ne $CMDS_NUMS ;then
if test $CMDS_LEN -ne $CMDS_NUMS ;then
{
if [ "$MIRROR" = 'china' ] ; then
sh sapi/quickstart/linux/alpine-init.sh --mirror china
Expand All @@ -130,7 +134,7 @@ if [ "$OS" = 'linux' ] ; then
fi

if [ "$OS" = 'macos' ] ; then
if test $CMDS_ARRAY_LEN -ne $CMDS_NUMS ; then
if test $CMDS_LEN -ne $CMDS_NUMS ; then
{
if [ "$MIRROR" = 'china' ] ; then
bash sapi/quickstart/macos/macos-init.sh --mirror china
Expand Down
16 changes: 4 additions & 12 deletions sapi/quickstart/setup-php-runtime.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,10 @@ __DIR__=$(
cd "$(dirname "$0")"
pwd
)
if [ -f ${__DIR__}/prepare.php ] ; then
__PROJECT__=$(
cd ${__DIR__}/
pwd
)
else
__PROJECT__=$(
cd ${__DIR__}/../../
pwd
)
fi

__PROJECT__=$(
cd ${__DIR__}/../../
pwd
)
cd ${__PROJECT__}

bash ${__PROJECT__}/setup-php-runtime.sh "$@"
5 changes: 4 additions & 1 deletion sapi/src/builder/extension/swoole.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

return function (Preprocessor $p) {

$swoole_tag = 'v5.1.2';
$swoole_tag = 'v5.1.3';
$file = "swoole-{$swoole_tag}.tar.gz";

$url = "https://github.com/swoole/swoole-src/archive/refs/tags/{$swoole_tag}.tar.gz";
Expand Down Expand Up @@ -46,4 +46,7 @@

$libs = $p->isMacos() ? '-lc++' : ' -lstdc++ ';
$p->withVariable('LIBS', '$LIBS ' . $libs);

$p->withExportVariable('CARES_CFLAGS', '$(pkg-config --cflags --static libcares)');
$p->withExportVariable('CARES_LIBS', '$(pkg-config --libs --static libcares)');
};

0 comments on commit 96f5dd5

Please sign in to comment.