Skip to content

Commit 097f53e

Browse files
committed
+ bin build for windows
1 parent 0cea1b6 commit 097f53e

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

.github/scripts/windows/publish.bat

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
REM Clean release folder if exists
2+
IF EXIST C:\php-release rmdir /S /Q C:\php-release
3+
4+
REM Create release folder
5+
mkdir C:\php-release
6+
7+
REM Copy php.exe
8+
copy C:\obj\Release_TS\php.exe C:\php-release\
9+
10+
REM Copy ini files
11+
copy C:\obj\Release_TS\php.ini-* C:\php-release\
12+
13+
REM Copy all DLLs
14+
xcopy /E /I /H /Y C:\obj\Release_TS\*.dll C:\php-release\
15+
16+
REM Copy ext directory
17+
xcopy /E /I /H /Y C:\obj\Release_TS\ext C:\php-release\ext\

.github/workflows/build-windows.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,18 @@ jobs:
6363
run: .github/scripts/windows/build.bat
6464

6565
- name: Test
66-
run: .github/scripts/windows/test.bat
66+
run: .github/scripts/windows/test.bat
67+
68+
- name: Publish built PHP
69+
run: .github/scripts/windows/publish.bat
70+
71+
- name: Archive built PHP
72+
shell: powershell
73+
run: |
74+
Compress-Archive -Path "C:\php-release\*" -DestinationPath php-windows.zip
75+
76+
- name: Upload archive
77+
uses: actions/upload-artifact@v4
78+
with:
79+
name: true-async-php-windows
80+
path: php-windows.zip

0 commit comments

Comments
 (0)