File tree Expand file tree Collapse file tree 2 files changed +7
-23
lines changed Expand file tree Collapse file tree 2 files changed +7
-23
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
3
3
set -e
4
4
5
- SWOOLE_VERSION=4.7.0
5
+ SWOOLE_PACKAGE_URL=https://uploads.mwop.net/laminas-ci/swoole-4.8.2-openswoole-4.8.0.tgz
6
+ SWOOLE_PACKAGE=$( basename " ${SWOOLE_PACKAGE_URL} " )
6
7
7
- # Get swoole package ONCE
8
+ # Download the pre-built extensions
8
9
cd /tmp
9
- wget https://pecl.php.net/get/swoole-${SWOOLE_VERSION} .tgz
10
- tar xzf swoole-${SWOOLE_VERSION} .tgz
11
-
12
- # We only need to support currently supported PHP versions
13
- for PHP_VERSION in 7.3 7.4 8.0; do
14
- cd /tmp/swoole-${SWOOLE_VERSION}
15
- if [ -f Makefile ]; then
16
- make clean
17
- fi
18
- phpize${PHP_VERSION}
19
- ./configure --enable-swoole --enable-sockets --with-php-config=php-config${PHP_VERSION}
20
- make
21
- make install
22
-
23
- cp /mods-available/swoole.ini /etc/php/${PHP_VERSION} /mods-available/swoole.ini
24
- done
10
+ wget " ${SWOOLE_PACKAGE_URL} "
11
+ cd /
12
+ tar xzf " /tmp/${SWOOLE_PACKAGE} "
25
13
26
14
# Cleanup
27
- rm -rf /tmp/swoole-${SWOOLE_VERSION}
28
- rm /tmp/swoole-${SWOOLE_VERSION} .tgz
15
+ rm -rf " /tmp/${SWOOLE_PACKAGE} "
You can’t perform that action at this time.
0 commit comments