File tree Expand file tree Collapse file tree 4 files changed +6
-2
lines changed
Expand file tree Collapse file tree 4 files changed +6
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ REDIS_VERSION=5.3.7
2929MONGODB_VERSION=1.14.2
3030YAML_VERSION=2.2.2
3131IMAGICK_VERSION=3.7.0
32+ SWOOLE_VERSION=$( awk ' NR==1{ print $1 }' " ${__PROJECT__} /sapi/SWOOLE-VERSION.conf" )
3233
3334mkdir -p pool/ext
3435mkdir -p pool/lib
@@ -100,9 +101,10 @@ cd ${__PROJECT__}
100101# copy extension
101102# cp -rf var/cygwin-build/ext/* ext/
102103cp -rf ${WORK_TEMP_DIR} /ext/. ${__PROJECT__} /ext/
104+
105+ cd ${__PROJECT__}
103106mkdir -p ${__PROJECT__} /ext/pgsql/
104107cp -rf ${WORK_TEMP_DIR} /php-src/ext/pgsql/. ${__PROJECT__} /ext/pgsql/
105108
106109# extension hook
107-
108110cd ${__PROJECT__}
Original file line number Diff line number Diff line change 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();
Original file line number Diff line number Diff line change 579579 echo $LIBS
580580elif [ "$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
You can’t perform that action at this time.
0 commit comments