add php 8.3 support

This commit is contained in:
crazywhalecc 2023-11-22 00:29:44 +08:00 committed by Jerry Ma
parent c95da8c150
commit 7a2e237069
8 changed files with 11 additions and 6 deletions

View File

@ -15,6 +15,7 @@ on:
default: '8.2' default: '8.2'
type: choice type: choice
options: options:
- '8.3'
- '8.2' - '8.2'
- '8.1' - '8.1'
- '8.0' - '8.0'

View File

@ -9,6 +9,7 @@ on:
default: '8.2' default: '8.2'
type: choice type: choice
options: options:
- '8.3'
- '8.2' - '8.2'
- '8.1' - '8.1'
- '8.0' - '8.0'

View File

@ -9,6 +9,7 @@ on:
default: '8.2' default: '8.2'
type: choice type: choice
options: options:
- '8.3'
- '8.2' - '8.2'
- '8.1' - '8.1'
- '8.0' - '8.0'

View File

@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
php-version: [ "8.0", "8.1", "8.2" ] php-version: [ "8.0", "8.1", "8.2", "8.3" ]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3

View File

@ -67,6 +67,7 @@ jobs:
include: include:
- php: '8.1' - php: '8.1'
- php: '8.2' - php: '8.2'
- php: '8.3'
steps: steps:
- name: "Checkout" - name: "Checkout"
@ -106,6 +107,7 @@ jobs:
- "8.0" - "8.0"
- "8.1" - "8.1"
- "8.2" - "8.2"
- "8.3"
os: os:
- ubuntu-latest - ubuntu-latest
- macos-latest - macos-latest
@ -117,7 +119,7 @@ jobs:
- name: "Setup PHP" - name: "Setup PHP"
uses: shivammathur/setup-php@v2 uses: shivammathur/setup-php@v2
with: with:
php-version: 8.2 php-version: 8.3
tools: pecl, composer tools: pecl, composer
extensions: curl, openssl, mbstring extensions: curl, openssl, mbstring
ini-values: memory_limit=-1 ini-values: memory_limit=-1

View File

@ -130,7 +130,7 @@ chmod +x bin/spc
./bin/spc build "bcmath,openssl,tokenizer,sqlite3,pdo_sqlite,ftp,curl" --build-cli --build-micro ./bin/spc build "bcmath,openssl,tokenizer,sqlite3,pdo_sqlite,ftp,curl" --build-cli --build-micro
``` ```
你也可以使用参数 `--with-php=x.y` 来指定下载的 PHP 版本,目前支持 7.3 ~ 8.2 你也可以使用参数 `--with-php=x.y` 来指定下载的 PHP 版本,目前支持 7.3 ~ 8.3
```bash ```bash
# 优先考虑使用 >= 8.0 的 PHP 版本,因为 phpmicro 不支持在 PHP7 中构建 # 优先考虑使用 >= 8.0 的 PHP 版本,因为 phpmicro 不支持在 PHP7 中构建

View File

@ -146,7 +146,7 @@ Basic usage for building php and micro with some extensions:
./bin/spc build bcmath,openssl,tokenizer,sqlite3,pdo_sqlite,ftp,curl --build-cli --build-micro ./bin/spc build bcmath,openssl,tokenizer,sqlite3,pdo_sqlite,ftp,curl --build-cli --build-micro
``` ```
You can also use the parameter `--with-php=x.y` to specify the downloaded PHP version, currently supports 7.4 ~ 8.2: You can also use the parameter `--with-php=x.y` to specify the downloaded PHP version, currently supports 7.4 ~ 8.3:
```bash ```bash
# Using PHP >= 8.0 is recommended, because PHP7 cannot use phpmicro # Using PHP >= 8.0 is recommended, because PHP7 cannot use phpmicro

View File

@ -25,7 +25,7 @@ __DIR__=$(cd "$(dirname "$0")" && pwd)
__PROJECT__=$(cd "${__DIR__}"/../ && pwd) __PROJECT__=$(cd "${__DIR__}"/../ && pwd)
# set download dir # set download dir
__PHP_RUNTIME_URL__="https://dl.static-php.dev/static-php-cli/common/php-8.2.10-cli-${__OS_FIXED__}-${__ARCH__}.tar.gz" __PHP_RUNTIME_URL__="https://dl.static-php.dev/static-php-cli/common/php-8.2.12-cli-${__OS_FIXED__}-${__ARCH__}.tar.gz"
__COMPOSER_URL__="https://getcomposer.org/download/latest-stable/composer.phar" __COMPOSER_URL__="https://getcomposer.org/download/latest-stable/composer.phar"
# use china mirror # use china mirror
@ -46,7 +46,7 @@ done
case "$mirror" in case "$mirror" in
china) china)
__PHP_RUNTIME_URL__="https://dl.static-php.dev/static-php-cli/common/php-8.2.10-cli-${__OS_FIXED__}-${__ARCH__}.tar.gz" __PHP_RUNTIME_URL__="https://dl.static-php.dev/static-php-cli/common/php-8.2.12-cli-${__OS_FIXED__}-${__ARCH__}.tar.gz"
__COMPOSER_URL__="https://mirrors.aliyun.com/composer/composer.phar" __COMPOSER_URL__="https://mirrors.aliyun.com/composer/composer.phar"
;; ;;