Skip to content

Commit

Permalink
swow
Browse files Browse the repository at this point in the history
  • Loading branch information
try-to committed Aug 14, 2023
1 parent 17e1dec commit 4c273c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
1 change: 1 addition & 0 deletions .github/workflows/windows-cygwin-swow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:

env:
BUILD_PHP_VERSION: 8.2.4
BUILD_SWOOLE_VERSION: 4.8.13
BUILD_SWOW_VERSION: 1.3.1

jobs:
Expand Down
18 changes: 2 additions & 16 deletions sapi/scripts/cygwin/cygwin-config-ext.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,8 @@ REDIS_VERSION=5.3.7
MONGODB_VERSION=1.14.2
YAML_VERSION=2.2.2
IMAGICK_VERSION=3.7.0

if test -z "$BUILD_SWOOLE_VERSION"; then
SWOOLE_VERSION=""
else
SWOOLE_VERSION=v${BUILD_SWOOLE_VERSION}
fi

if test -z "$BUILD_SWOW_VERSION"; then
SWOW_VERSION=""
else
SWOW_VERSION=v${BUILD_SWOW_VERSION}
fi

if [ ! -d pool/ext ]; then
mkdir -p pool/ext
Expand Down Expand Up @@ -74,25 +64,21 @@ if [ ! -d $ROOT/ext/imagick ]; then
mv imagick-${IMAGICK_VERSION} $ROOT/ext/imagick
fi

if [[ -n "${SWOOLE_VERSION}" ]];then
if [ ! -d $ROOT/ext/swoole ]; then
if [ ! -d $ROOT/ext/swoole ]; then
if [ ! -f swoole-${SWOOLE_VERSION}.tgz ]; then
wget -O swoole-${SWOOLE_VERSION}.tgz https://github.com/swoole/swoole-src/archive/refs/tags/${SWOOLE_VERSION}.tar.gz
fi
mkdir -p swoole-${SWOOLE_VERSION}
tar --strip-components=1 -C swoole-${SWOOLE_VERSION} -xf swoole-${SWOOLE_VERSION}.tgz
mv swoole-${SWOOLE_VERSION} $ROOT/ext/swoole
fi
fi

if [[ -n "${SWOW_VERSION}" ]];then
if [ ! -d $ROOT/ext/swow ]; then
if [ ! -d $ROOT/ext/swow ]; then
if [ ! -f swow-${SWOW_VERSION}.tar.gz ]; then
wget -O swow-${SWOW_VERSION}.tgz https://github.com/swow/swow/archive/refs/tags/v${SWOW_VERSION}.tar.gz
fi
tar xvf swow-${SWOW_VERSION}.tgz
mv swow-${SWOW_VERSION}/ext/ $ROOT/ext/swow
fi
fi

cd $ROOT
Expand Down

0 comments on commit 4c273c7

Please sign in to comment.