Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions sapi/scripts/cygwin/cygwin-config-ext.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ download_and_extract "imagick" ${IMAGICK_VERSION}

cd ${__PROJECT__}/pool/ext
# with git clone swoole source code
if [ -n "${GITHUB_ACTION}" ]; then
test -f ${__PROJECT__}/pool/ext/swoole-${SWOOLE_VERSION}.tgz && rm -f ${__PROJECT__}/pool/ext/swoole-${SWOOLE_VERSION}.tgz
fi
if [ ! -f swoole-${SWOOLE_VERSION}.tgz ]; then
test -d ${WORK_TEMP_DIR}/swoole && rm -rf ${WORK_TEMP_DIR}/swoole
git clone -b ${SWOOLE_VERSION} https://github.com/swoole/swoole-src.git ${WORK_TEMP_DIR}/swoole
Expand Down
3 changes: 3 additions & 0 deletions sapi/scripts/msys2/config-ext.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ download_and_extract "yaml" ${YAML_VERSION}
download_and_extract "imagick" ${IMAGICK_VERSION}

cd ${__PROJECT__}/pool/ext
if [ -n "${GITHUB_ACTION}" ]; then
test -f ${__PROJECT__}/pool/ext/swoole-${SWOOLE_VERSION}.tgz && rm -f ${__PROJECT__}/pool/ext/swoole-${SWOOLE_VERSION}.tgz
fi
if [ ! -f swoole-${SWOOLE_VERSION}.tgz ]; then
test -d ${WORK_TEMP_DIR}/swoole && rm -rf ${WORK_TEMP_DIR}/swoole
git clone -b ${SWOOLE_VERSION} https://github.com/swoole/swoole-src.git ${WORK_TEMP_DIR}/swoole
Expand Down
4 changes: 4 additions & 0 deletions sapi/src/builder/extension/swoole.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@
CURRENT_SWOOLE_VERSION=$(grep 'set(SWOOLE_VERSION' ext/swoole/CMakeLists.txt | awk '{ print $2 }' | sed 's/)//')
if [[ "${CURRENT_SWOOLE_VERSION}" =~ "-dev" ]]; then
echo 'swoole version master'
if [ -n "${GITHUB_ACTION}" ]; then
test -f ${WORKDIR}/pool/ext/swoole-${SWOOLE_VERSION}.tgz && rm -f ${WORKDIR}/pool/ext/swoole-${SWOOLE_VERSION}.tgz
CURRENT_SWOOLE_VERSION=''
fi
fi
fi

Expand Down
Loading