Skip to content

Commit 7f70fa5

Browse files
authored
Update build-php-windows.yml
1 parent 5c2b1b3 commit 7f70fa5

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/build-php-windows.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,21 @@ jobs:
9292
GITHUB_TOKEN: ${{ secrets.S_GITHUB_TOKEN }}
9393
run: ${{ steps.process-env.outputs.CMD }} download --with-php=${{ matrix.php-version }} --for-extensions="${{ steps.process-env.outputs.EXTENSIONS }}" --retry=5 --prefer-pre-built
9494

95+
- name: "Doctor"
96+
env:
97+
GITHUB_TOKEN: ${{ secrets.S_GITHUB_TOKEN }}
98+
run: ${{ steps.process-env.outputs.CMD }} doctor --auto-fix
99+
100+
- name: "Install UPX"
101+
env:
102+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
103+
run: ${{ steps.process-env.outputs.CMD }} install-pkg upx
104+
95105
- name: "Build extensions: ${{ steps.process-env.outputs.EXTENSIONS }}"
96-
run: |
97-
${{ steps.process-env.outputs.CMD }} doctor --auto-fix
98-
${{ steps.process-env.outputs.CMD }} install-pkg upx
99-
100-
${{ steps.process-env.outputs.CMD }} build --build-cli --build-micro "${{ steps.process-env.outputs.EXTENSIONS }}" --debug --with-upx-pack
106+
run: ${{ steps.process-env.outputs.CMD }} build --build-cli --build-micro "${{ steps.process-env.outputs.EXTENSIONS }}" --debug --with-upx-pack
101107

108+
- name: "Pack PHP"
109+
run: |
102110
$PHPVER = ${{ steps.process-env.outputs.CMD }} dev:php-ver
103111
New-Item -ItemType Directory -Force -Path dist
104112
Compress-Archive -Path "buildroot\bin\php.exe" -DestinationPath "dist\php-$PHPVER-cli-win.zip"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy