forked from swoole/swoole-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
58 changed files
with
1,068 additions
and
199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: build-php-cli-linux-mips64le | ||
name: build-linux-mips64le | ||
|
||
on: [ push, pull_request ] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: build-php-cli-linux-riscv64 | ||
name: build-linux-riscv64 | ||
|
||
on: [ push, pull_request ] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# support extensions (x64) | ||
|
||
| extension name | linux6 | macos | windows(cygwin) | default enabled | | ||
|----------------|--------|-------|-----------------|----------------| | ||
| curl | ✅ | ✅ | ✅ | ✅ | | ||
| iconv | ✅ | ✅ | ✅ | ✅ | | ||
| bcmath | ✅ | ✅ | ✅ | ✅ | | ||
| pcntl | ✅ | ✅ | ✅ | ✅ | | ||
| filter | ✅ | ✅ | ✅ | ✅ | | ||
| session | ✅ | ✅ | ✅ | ✅ | | ||
| tokenizer | ✅ | ✅ | ✅ | ✅ | | ||
| mbstring | ✅ | ✅ | ✅ | ✅ | | ||
| ctype | ✅ | ✅ | ✅ | ✅ | | ||
| zlib | ✅ | ✅ | ✅ | ✅ | | ||
| zip | ✅ | ✅ | ✅ | ✅ | | ||
| posix | ✅ | ✅ | ✅ | ✅ | | ||
| sockets | ✅ | ✅ | ✅ | ✅ | | ||
| pdo | ✅ | ✅ | ✅ | ✅ | | ||
| sqlite3 | ✅ | ✅ | ✅ | ✅ | | ||
| phar | ✅ | ✅ | ✅ | ✅ | | ||
| mysqlnd | ✅ | ✅ | ✅ | ✅ | | ||
| mysqli | ✅ | ✅ | ✅ | ✅ | | ||
| intl | ✅ | ✅ | ✅ | ✅ | | ||
| fileinfo | ✅ | ✅ | ✅ | ✅ | | ||
| pdo_mysql | ✅ | ✅ | ✅ | ✅ | | ||
| soap | ✅ | ✅ | ✅ | ✅ | | ||
| xsl | ✅ | ✅ | ✅ | ✅ | | ||
| gmp | ✅ | ✅ | ✅ | ✅ | | ||
| exif | ✅ | ✅ | ✅ | ✅ | | ||
| sodium | ✅ | ✅ | ✅ | ✅ | | ||
| openssl | ✅ | ✅ | ✅ | ✅ | | ||
| readline | ✅ | ✅ | ✅ | ✅ | | ||
| libxml | ✅ | ✅ | ✅ | ✅ | | ||
| xml | ✅ | ✅ | ✅ | ✅ | | ||
| xmlreader | ✅ | ✅ | ✅ | ✅ | | ||
| xmlwriter | ✅ | ✅ | ✅ | ✅ | | ||
| dom | ✅ | ✅ | ✅ | ✅ | | ||
| simplexml | ✅ | ✅ | ✅ | ✅ | | ||
| redis | ✅ | ✅ | ✅ | ✅ | | ||
| yaml | ✅ | ✅ | ✅ | ✅ | | ||
| imagick | ✅ | ✅ | ✅ | ✅ | | ||
| gd | ✅ | ✅ | ✅ | ✅ | | ||
| opcache | ✅ | ✅ | ✅ | ✅ | | ||
| swoole | ✅ | ✅ | ✅ | ✅ | | ||
| ssh2 | ✅ | ✅ | ❌ | ❌ | | ||
| apcu | ✅ | ✅ | ❌ | ❌ | | ||
| ds | ✅ | ✅ | ✅ | ❌ | | ||
| inotify | ✅ | ❌ | ❌ | ❌ | | ||
| protobuf | ❌ | ❌ | ❌ | ❌ | | ||
| uuid | ✅ | ✅ | ❌ | ❌ | | ||
| mailparse | ✅ | ✅ | ❌ | ❌ | | ||
| mongodb | ❌ | ❌ | ❌ | ❌ | | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
$poject_dir = realpath(__DIR__ . '/../'); | ||
# $php_version_tag = trim(file_get_contents($poject_dir . '/sapi/PHP-VERSION.conf')); | ||
$php_version_tag = "8.2.13"; | ||
define("PHP_SRC_DIR", $poject_dir . "/var/php-{$php_version_tag}"); | ||
$php_source_folder = PHP_SRC_DIR; | ||
$php_file = $poject_dir . "/pool/lib/php-{$php_version_tag}.tar.gz"; | ||
$download_dir = dirname($php_file); | ||
|
||
|
||
# 下载 PHP 源码 | ||
$DOWNLOAD_PHP_CMD = "curl -L https://github.com/php/php-src/archive/refs/tags/php-{$php_version_tag}.tar.gz -o {$php_file}"; | ||
echo $DOWNLOAD_PHP_CMD . PHP_EOL; | ||
if (!file_exists($php_file)) { | ||
`test -d {$download_dir} || mkdir -p {$download_dir}`; | ||
`{$DOWNLOAD_PHP_CMD}`; | ||
} | ||
|
||
# 解压 PHP 源码 | ||
# tar -zxvf 文件名.tar.gz --strip-components=1 -C 指定解压目录 | ||
$UNTAR_PHP_SOURCE_CMD = <<<EOF | ||
set -x | ||
# test -d {$php_source_folder} && rm -rf {$php_source_folder} | ||
mkdir -p {$php_source_folder} | ||
test -f {$php_source_folder}/configure.ac || tar -zxf {$php_file} --strip-components=1 -C {$php_source_folder} | ||
EOF; | ||
|
||
`{$UNTAR_PHP_SOURCE_CMD}`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/bash | ||
|
||
set -exu | ||
__DIR__=$( | ||
cd "$(dirname "$0")" | ||
pwd | ||
) | ||
cd ${__DIR__} | ||
|
||
# use china mirror | ||
# sh sapi/quickstart/linux/alpine-init-mini.sh --mirror [ china | ustc | tuna | tencentyun | huaweicloud ] | ||
|
||
|
||
MIRROR='' | ||
while [ $# -gt 0 ]; do | ||
case "$1" in | ||
--mirror) | ||
MIRROR="$2" | ||
;; | ||
--*) | ||
echo "no found mirror option $1" | ||
;; | ||
esac | ||
shift $(($# > 0 ? 1 : 0)) | ||
done | ||
|
||
case "$MIRROR" in | ||
china | tuna | ustc) | ||
test -f /etc/apk/repositories.save || cp /etc/apk/repositories /etc/apk/repositories.save | ||
test "$MIRROR" = "china" && sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories | ||
test "$MIRROR" = "tuna" && sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories | ||
test "$MIRROR" = "ustc" && sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories | ||
;; | ||
tencentyun | huaweicloud) # 云服务的内网镜像源 | ||
test -f /etc/apk/repositories.save || cp /etc/apk/repositories /etc/apk/repositories.save | ||
test "$MIRROR" = "tencentyun" && sed -i 's/dl-cdn.alpinelinux.org/mirrors.tencentyun.com/g' /etc/apk/repositories | ||
test "$MIRROR" = "huaweicloud" && sed -i 's/dl-cdn.alpinelinux.org/repo.huaweicloud.com/g' /etc/apk/repositories | ||
;; | ||
|
||
esac | ||
|
||
apk update | ||
|
||
apk add bash git curl wget xz zip unzip ca-certificates |
Oops, something went wrong.