update README

This commit is contained in:
crazywhalecc 2023-04-15 21:44:34 +08:00
parent ab1109df90
commit 762f6043c5
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680
2 changed files with 23 additions and 31 deletions

View File

@ -20,19 +20,18 @@ Note: only support cli, not support fpm, cgi.
Yes, this project is written in PHP, pretty funny.
But php-static-cli runtime only requires an environment above PHP 8.0 and tokenizer extension.
- Linux
- Supported arch: aarch64, amd64
- Supported distributions: alpine, ubuntu, centos
- Requirements: make, bison, flex, pkg-config, git, autoconf, automake, tar, unzip, gzip, bzip2, cmake
- macOS
- Supported arch: arm64, x86_64
- Requirements: make, bison, flex, pkg-config, git, autoconf, automake, tar, unzip, xz, gzip, bzip2, cmake
- Windows
- Supported arch: x86_64
- Requirements: (TODO)
- PHP
- Supported compile version: 7.4, 8.0, 8.1, 8.2
- Self required version: 8.0, 8.1, 8.2
Here is the architecture support status, where `CI` represents support for GitHub Action builds,
`Local` represents support for local builds, and blank represents not currently supported.
| | x86_64 | aarch64 |
|---------|-----------|---------|
| macOS | CI, Local | Local |
| Linux | CI, Local | Local |
| Windows | | |
> linux-aarch64 and macOS-arm64 is not supported for GitHub Actions, if you are going to build on arm, you can build it manually on your own machine.
Currently supported PHP versions for compilation are: 7.4, 8.0, 8.1, 8.2.
## Usage
@ -54,11 +53,8 @@ and at the same time define the extensions to be compiled by yourself.
If you enable `debug`, all logs will be output at build time, including compiled logs, for troubleshooting.
At present, the CI build is based on the official Runner of GitHub, and limitations:
- When using ubuntu-latest, it will build linux-x86_64 binary.
- When using macos-latest, it will build macOS-x86_64 binary.
- linux-aarch64 and macOS-arm64 is not supported for GitHub Actions, if you are going to build on arm, you can build it manually on your own machine.
### Manual Build

View File

@ -19,19 +19,17 @@ Compile A Statically Linked PHP With Swoole and other Extensions. [English READM
是的,本项目采用 PHP 编写,编译前需要一个 PHP 环境,比较滑稽。
但本项目默认可通过自身构建的 micro 和 static-php 二进制运行,其他只需要包含 tokenizer 扩展和 PHP 版本大于等于 8.0 即可。
- Linux
- 支持架构: aarch64, amd64
- 支持发行版: alpine, ubuntu, centos
- 依赖工具: make, bison, flex, pkg-config, git, autoconf, automake, tar, unzip, gzip, bzip2, cmake
- macOS
- 支持架构: arm64, x86_64
- 依赖工具: make, bison, flex, pkg-config, git, autoconf, automake, tar, unzip, xz, gzip, bzip2, cmake
- Windows
- 支持架构: x86_64
- 依赖工具: (TODO)
- PHP
- 支持编译版本: 7.4, 8.0, 8.1, 8.2
- 项目依赖版本8.0, 8.1, 8.2
下面是架构支持情况,`CI` 代表支持 GitHub Action 构建,`Local` 代表支持本地构建,空 代表暂不支持。
| | x86_64 | aarch64 |
|---------|-----------|---------|
| macOS | CI, Local | Local |
| Linux | CI, Local | Local |
| Windows | | |
> linux-aarch64 and macOS-arm64 因 GitHub 暂未提供 arm runner如果要构建 arm 二进制,可以使用手动构建。
目前支持编译的 PHP 版本为:`7.4``8.0``8.1``8.2`
## 使用
@ -52,8 +50,6 @@ Compile A Statically Linked PHP With Swoole and other Extensions. [English READM
如果你选择了 `debug`,则会在构建时输出所有日志,包括编译的日志,以供排查错误。
目前构建是基于 GitHub 官方的 Runner使用 `macos-latest` 编译后的 PHP 为 Intel 架构,使用 `ubuntu-latest` 编译后的架构为 `x86_64` 架构。 如需编译其他架构,请手动构建。
### 手动构建
```bash