Skip to content

Commit 382defa

Browse files
authored
Merge pull request #1059 from jingjingxyk/build_native_php
Build native php
2 parents b51ec13 + 1220a7f commit 382defa

29 files changed

+518
-48
lines changed

.github/workflows/linux-aarch64.yml

Lines changed: 6 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.29"
16-
- "8.1.33"
17-
- "8.3.28"
18-
- "8.4.15"
15+
- "8.2.30"
16+
- "8.1.34"
17+
- "8.3.29"
18+
- "8.4.16"
1919
# - "8.5.0"
2020
steps:
2121
- uses: actions/checkout@v4
@@ -126,6 +126,8 @@ jobs:
126126
alias php="php -d curl.cainfo=/work/runtime/php/cacert.pem -d openssl.cafile=/work/runtime/php/cacert.pem"
127127
128128
sh sapi/quickstart/linux/alpine-init.sh
129+
git config --global --add safe.directory /work
130+
129131
composer install --no-interaction --no-autoloader --no-scripts --profile --no-dev
130132
composer dump-autoload --optimize --profile --no-dev
131133

.github/workflows/linux-x86_64.yml

Lines changed: 6 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.29"
53-
- "8.1.33"
54-
- "8.3.28"
55-
- "8.4.15"
52+
- "8.2.30"
53+
- "8.1.34"
54+
- "8.3.29"
55+
- "8.4.16"
5656
# - "8.5.0"
5757
steps:
5858
- uses: actions/checkout@v4
@@ -179,6 +179,8 @@ jobs:
179179
alias php="php -d curl.cainfo=/work/runtime/php/cacert.pem -d openssl.cafile=/work/runtime/php/cacert.pem"
180180
181181
sh sapi/quickstart/linux/alpine-init.sh
182+
git config --global --add safe.directory /work
183+
182184
composer install --no-interaction --no-autoloader --no-scripts --profile --no-dev
183185
composer dump-autoload --optimize --profile --no-dev
184186

.github/workflows/macos-aarch64.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
strategy:
1717
matrix:
1818
php-version:
19-
- "8.2.29"
20-
- "8.1.33"
21-
- "8.3.28"
22-
- "8.4.15"
19+
- "8.2.30"
20+
- "8.1.34"
21+
- "8.3.29"
22+
- "8.4.16"
2323
# - "8.5.0"
2424
steps:
2525
- 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.29"
23-
- "8.1.33"
24-
- "8.3.28"
25-
- "8.4.15"
22+
- "8.2.30"
23+
- "8.1.34"
24+
- "8.3.29"
25+
- "8.4.16"
2626
# - "8.5.0"
2727
steps:
2828
- uses: actions/checkout@v4

.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.29"
18-
- "8.1.33"
19-
- "8.3.28"
20-
- "8.4.15"
17+
- "8.2.30"
18+
- "8.1.34"
19+
- "8.3.29"
20+
- "8.4.16"
2121
# - "8.5.0"
2222
steps:
2323
- name: Show Environment Info

.github/workflows/windows-msys2.yml

Lines changed: 27 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.29"
18-
# - "8.1.33"
19-
- "8.3.28"
20-
- "8.4.15"
17+
- "8.2.30"
18+
# - "8.1.34"
19+
- "8.3.29"
20+
- "8.4.16"
2121
# - "8.5.0"
2222
steps:
2323
- name: Show Environment Info
@@ -130,3 +130,26 @@ jobs:
130130
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
131131
with:
132132
files: ${{ env.APP_NAME }}-${{ env.APP_VERSION }}-msys2-x64.zip
133+
134+
135+
upload-to-cloud-object-storage:
136+
if: 1
137+
runs-on: ubuntu-latest
138+
needs: windows-msys2
139+
steps:
140+
- name: Prepare Run Environment
141+
run:
142+
sudo apt install -y curl
143+
- uses: actions/checkout@v4
144+
- uses: actions/download-artifact@v4
145+
- name: upload artifacts to cloud object storage
146+
if: ${{ 0 && (github.repository == 'swoole/swoole-cli') && (startsWith(github.ref, 'refs/tags/')) }}
147+
env:
148+
OSS_SECRET_ID: ${{ secrets.QCLOUD_OSS_SECRET_ID }}
149+
OSS_SECRET_KEY: ${{ secrets.QCLOUD_OSS_SECRET_KEY }}
150+
OSS_BUCKET: ${{ vars.QCLOUD_OSS_BUCKET }}
151+
OSS_REGION: ${{ vars.QCLOUD_OSS_REGION }}
152+
run: |
153+
FILE_NAME=$(ls -d swoole-cli-v*-msys2-x64)
154+
FILE="${{ github.workspace }}/${FILE_NAME}/${FILE_NAME}.zip"
155+
bash sapi/scripts/tencent-cloud-object-storage.sh --upload-file ${FILE}

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ tmp-php.ini
315315
/ext/ds
316316
/ext/xlswriter
317317
/ext/uuid
318+
/ext/phpy
318319
/.phpunit.result.cache
319320
/samples/sfx/*.phar
320321
.php-cs-fixer.cache
@@ -335,8 +336,6 @@ php.ini
335336
sapi/webUI/deploy.sh
336337
sapi/webUI/public/data/
337338
Makefile.backup
338-
ldflags.log
339-
cppflags.log
340339
libs.log
341340
ext/apcu/
342341
ext/ssh2/
@@ -352,3 +351,4 @@ php-fpm-*
352351
*.deb
353352
*.rpm
354353
nfpm-pkg.yaml
354+
!/var/.gitkeep

sapi/SWOOLE-VERSION.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v6.1.3
1+
v6.1.5

sapi/quickstart/windows/msys2-build/install-msys2.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ pacman -S --needed --noconfirm icu-devel
7171
pacman -S --needed --noconfirm gettext-devel
7272
pacman -S --needed --noconfirm libintl
7373
pacman -S --needed --noconfirm flex
74+
pacman -S --needed --noconfirm nasm yasm
7475

7576
: <<'COMMENT'
7677
# 不存在的包

sapi/scripts/build-swoole-cli-with-linux-gcc.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ fi
3535
--enable-exif \
3636
--with-sodium \
3737
--enable-xml --enable-simplexml --enable-xmlreader --enable-xmlwriter --enable-dom --with-libxml \
38-
--enable-gd --with-jpeg --with-freetype \
38+
--enable-gd --with-jpeg --with-freetype --with-avif \
3939
--enable-swoole \
4040
--enable-swoole-curl \
4141
--enable-cares \
@@ -50,6 +50,7 @@ fi
5050
--with-imagick \
5151
--with-yaml \
5252
--with-readline \
53+
--enable-phpy --with-python-config=python3-config \
5354
--enable-opcache
5455

5556
make -j "$(nproc)"

0 commit comments

Comments
 (0)