Skip to content
This repository was archived by the owner on Jul 1, 2024. It is now read-only.

Commit af119de

Browse files
committed
add windows actions build docs
1 parent 32d3888 commit af119de

File tree

4 files changed

+17
-2
lines changed

4 files changed

+17
-2
lines changed

docs/en/guide/build-on-windows.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ Because the Windows system is an NT kernel, the compilation tools and operating
44
used by Unix-like operating systems are almost completely different,
55
so the build process on Windows will be slightly different from that of Unix systems.
66

7+
## GitHub Actions Build
8+
9+
Building the Windows version of static-php from Actions is now supported.
10+
Like Linux and macOS, you can enter the [Extension List](./extensions) to select the extension to be compiled, and then visit [CI on Windows](https://github.com/crazywhalecc/static-php-cli/actions/workflows/build-windows-x86_64.yml) and select the PHP version,
11+
fill in the extension list (comma separated), and click Run.
12+
13+
If you're going to develop or build locally, please read on.
14+
715
## Requirements
816

917
The tools required to build static PHP on Windows are the same as PHP's official Windows build tools.

docs/en/guide/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The following is the architecture support situation, where :gear: represents sup
2222
|---------|-------------------|-------------------|
2323
| macOS | :gear: :computer: | :gear: :computer: |
2424
| Linux | :gear: :computer: | :gear: :computer: |
25-
| Windows | :computer: | |
25+
| Windows | :gear: :computer: | |
2626
| FreeBSD | :computer: | :computer: |
2727

2828
Among them, Linux is currently only tested on Ubuntu, Debian, and Alpine distributions,

docs/zh/guide/build-on-windows.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
因为 Windows 系统是 NT 内核,与类 Unix 的操作系统使用的编译工具及操作系统接口几乎完全不同,所以在 Windows 上的构建流程会与 Unix 系统有些许不同。
44

5+
## GitHub Actions 构建
6+
7+
现在已支持从 Actions 构建 Windows 版本的 static-php 了。
8+
和 Linux、macOS 一样,你可以进入 [扩展列表](./extensions) 选择要编译的扩展,然后 [CI on Windows](https://github.com/crazywhalecc/static-php-cli/actions/workflows/build-windows-x86_64.yml) 选择 PHP 版本、填入扩展列表(逗号分割),点击 Run 即可。
9+
10+
如果你要在本地开发或构建,请继续向下阅读。
11+
512
## 环境准备
613

714
在 Windows 上构建静态 PHP 所需要的工具与 PHP 官方的 Windows 构建工具是相同的。你可以阅读 [官方文档](https://wiki.php.net/internals/windows/stepbystepbuild_sdk_2)

docs/zh/guide/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ static-php-cli 是一个用于构建静态编译的 PHP 二进制的工具,目
1616
|---------|-------------------|-------------------|
1717
| macOS | :gear: :computer: | :gear: :computer: |
1818
| Linux | :gear: :computer: | :gear: :computer: |
19-
| Windows | :computer: | |
19+
| Windows | :gear: :computer: | |
2020
| FreeBSD | :computer: | :computer: |
2121

2222
其中,Linux 目前仅在 Ubuntu、Debian、Alpine 发行版测试通过,其他发行版未进行测试,不能保证编译成功。

0 commit comments

Comments
 (0)