Skip to content

Commit 1ce516b

Browse files
authored
Merge pull request #982 from jingjingxyk/build_native_php
Build native php
2 parents 65cef26 + 4ec39b4 commit 1ce516b

19 files changed

+75
-71
lines changed

.github/workflows/auto-cache-pool-tarball.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
uses: actions/cache@v4
4545
id: php-runtime-cache
4646
with:
47-
path: ${{ github.workspace }}/bin/runtime
47+
path: ${{ github.workspace }}/runtime
4848
key: ${{ runner.os }}-x86_64-php-runtime
4949

5050
- name: Cache PHP Vendor
@@ -87,10 +87,10 @@ jobs:
8787
php prepare.php +inotify +apcu +ds +ssh2 +uuid +protobuf +gettext --with-libavif=1 --show-tarball-hash=1
8888
php prepare.php +apcu +ds +ssh2 +uuid +protobuf +gettext --with-libavif=1 --show-tarball-hash=1 @macos
8989
# php sapi/scripts/download-php-src-archive.php
90-
php prepare.php --show-tarball-hash=1 --with-php-version=8.1.32
91-
php prepare.php --show-tarball-hash=1 --with-php-version=8.2.28
92-
php prepare.php --show-tarball-hash=1 --with-php-version=8.3.19
93-
php prepare.php --show-tarball-hash=1 --with-php-version=8.4.5
90+
php prepare.php --show-tarball-hash=1 --with-php-version=8.1.33
91+
php prepare.php --show-tarball-hash=1 --with-php-version=8.2.29
92+
php prepare.php --show-tarball-hash=1 --with-php-version=8.3.23
93+
php prepare.php --show-tarball-hash=1 --with-php-version=8.4.10
9494
9595
cd ${{ github.workspace }}/pool/
9696
zip -9 -r ${WORK_DIR}/all-deps.zip ext lib php-tar

.github/workflows/build-alpine-builder-container.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ EOF
8989

9090
: <<'EOF'
9191
92+
# https://github.com/tonistiigi/binfmt
93+
9294
# docker.io/tonistiigi/binfmt:latest
9395
"supported": [
9496
"linux/amd64",

.github/workflows/linux-aarch64.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
strategy:
1313
matrix:
1414
php-version:
15-
- "8.2.28"
16-
- "8.1.32"
17-
- "8.3.19"
18-
- "8.4.5"
15+
- "8.2.29"
16+
- "8.1.33"
17+
- "8.3.23"
18+
- "8.4.10"
1919
steps:
2020
- uses: actions/checkout@v4
2121
- name: Show Environment Info

.github/workflows/linux-loongarch.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,14 @@ jobs:
8484
8585
ls -A pool/lib/
8686
ls -A /usr/local/swoole-cli/
87-
- name: Set up QEMU
88-
uses: docker://loongarch/qemu-user-static:latest # Replace with your image
87+
88+
- name: Build
89+
uses: addnab/docker-run-action@v3
8990
with:
90-
arch: loongarch64
91-
qemu-binary: qemu-loongarch64 # Or your QEMU binary
91+
image: cr.loongnix.cn/library/debian
92+
options: -v ${{ github.workspace }}:/work/
93+
run: |
94+
--install loong64
9295
9396
- name: Run LoongArch command
9497
run: |

.github/workflows/linux-x86_64.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ jobs:
4949
strategy:
5050
matrix:
5151
php-version:
52-
- "8.2.28"
53-
- "8.1.32"
54-
- "8.3.19"
55-
- "8.4.5"
52+
- "8.2.29"
53+
- "8.1.33"
54+
- "8.3.23"
55+
- "8.4.10"
5656
steps:
5757
- uses: actions/checkout@v4
5858
- name: Show Environment Info

.github/workflows/macos-aarch64.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
strategy:
1818
matrix:
1919
php-version:
20-
- "8.2.28"
21-
- "8.1.32"
22-
- "8.3.19"
23-
- "8.4.5"
20+
- "8.2.29"
21+
- "8.1.33"
22+
- "8.3.23"
23+
- "8.4.10"
2424

2525
steps:
2626
- uses: actions/checkout@v4

.github/workflows/macos-x86_64.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
strategy:
2020
matrix:
2121
php-version:
22-
- "8.2.28"
23-
- "8.1.32"
24-
- "8.3.19"
25-
- "8.4.5"
22+
- "8.2.29"
23+
- "8.1.33"
24+
- "8.3.23"
25+
- "8.4.10"
2626
steps:
2727
- uses: actions/checkout@v4
2828
- name: Show Environment Info

.github/workflows/windows-cygwin.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
strategy:
1515
matrix:
1616
php-version:
17-
- "8.2.28"
18-
- "8.1.32"
19-
- "8.3.19"
20-
- "8.4.5"
17+
- "8.2.29"
18+
- "8.1.33"
19+
- "8.3.23"
20+
- "8.4.10"
2121
steps:
2222
- name: Show Environment Info
2323
shell: cmd

.github/workflows/windows-msys2.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
strategy:
1515
matrix:
1616
php-version:
17-
- "8.2.28"
18-
- "8.1.32"
19-
- "8.3.19"
20-
- "8.4.5"
17+
- "8.2.29"
18+
- "8.1.33"
19+
- "8.3.23"
20+
- "8.4.10"
2121
steps:
2222
- name: Show Environment Info
2323
shell: cmd

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ curl -fSL https://github.com/swoole/build-static-php/blob/main/setup-php-cli-run
3333
# windows powershell
3434
irm https://github.com/swoole/build-static-php/blob/main/setup-swoole-cli-runtime.ps1?raw=true | iex
3535

36+
# windows powershell
37+
irm https://github.com/swoole/swoole-cli/blob/main/setup-swoole-cli-runtime.ps1?raw=true | iex
38+
3639
# 来自 https://www.swoole.com/download
3740
curl -fSL https://github.com/swoole/swoole-cli/blob/main/setup-swoole-cli-runtime.sh?raw=true | bash -s -- --mirror china
3841

0 commit comments

Comments
 (0)