Skip to content

Commit 496f231

Browse files
authored
Merge pull request #981 from jingjingxyk/experiment-feature
Experiment feature merge main code
2 parents 82d7658 + e4ecba6 commit 496f231

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

.github/workflows/windows-cygwin.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ jobs:
114114
./bin/swoole-cli -r "echo PHP_VERSION;"
115115
ldd ./bin/swoole-cli
116116
./bin/swoole-cli -r "echo getcwd();echo PHP_EOL;"
117+
./bin/swoole-cli -r "echo getcwd(), PHP_EOL;"
117118
118119
- name: get app version with bash
119120
# 参考 https://github.com/marketplace/actions/install-cygwin

sapi/scripts/cygwin/cygwin-config-ext.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ REDIS_VERSION=5.3.7
2929
MONGODB_VERSION=1.14.2
3030
YAML_VERSION=2.2.2
3131
IMAGICK_VERSION=3.7.0
32+
SWOOLE_VERSION=$(awk 'NR==1{ print $1 }' "${__PROJECT__}/sapi/SWOOLE-VERSION.conf")
3233

3334
mkdir -p pool/ext
3435
mkdir -p pool/lib
@@ -100,9 +101,10 @@ cd ${__PROJECT__}
100101
# copy extension
101102
# cp -rf var/cygwin-build/ext/* ext/
102103
cp -rf ${WORK_TEMP_DIR}/ext/. ${__PROJECT__}/ext/
104+
105+
cd ${__PROJECT__}
103106
mkdir -p ${__PROJECT__}/ext/pgsql/
104107
cp -rf ${WORK_TEMP_DIR}/php-src/ext/pgsql/. ${__PROJECT__}/ext/pgsql/
105108

106109
# extension hook
107-
108110
cd ${__PROJECT__}

sapi/src/builder/extension/swoole.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@
100100

101101
$p->withExportVariable('ZSTD_CFLAGS', '$(pkg-config --cflags --static libzstd)');
102102
$p->withExportVariable('ZSTD_LIBS', '$(pkg-config --libs --static libzstd)');
103+
103104
/*
104105
$p->withBeforeConfigureScript('swoole', function () use ($p) {
105106
$workDir = $p->getWorkDir();

sapi/src/template/make.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@
579579
echo $LIBS
580580
elif [ "$1" = "sync" ] ;then
581581
PHP_CLI=$(which php)
582-
test -f ${__PROJECT_DIR__}/runtime/php && PHP_CLI="${__PROJECT_DIR__}/runtime/php -d curl.cainfo=${__PROJECT_DIR__}/runtime/cacert.pem -d openssl.cafile=${__PROJECT_DIR__}/runtime/cacert.pem"
582+
test -f ${__PROJECT_DIR__}/runtime/php/php && PHP_CLI="${__PROJECT_DIR__}/runtime/php/php -d curl.cainfo=${__PROJECT_DIR__}/runtime/php/cacert.pem -d openssl.cafile=${__PROJECT_DIR__}/runtime/php/cacert.pem"
583583
$PHP_CLI -v
584584
$PHP_CLI sync-source-code.php --action run
585585
exit 0

0 commit comments

Comments
 (0)