Skip to content

Commit ae4f517

Browse files
authored
fix
1 parent fc4c4d4 commit ae4f517

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/build-php.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build latest PHP versions for each arch
1+
name: Build PHP
22

33
permissions:
44
contents: write
@@ -15,7 +15,7 @@ env:
1515

1616
jobs:
1717
build:
18-
name: Build latest PHP ${{ matrix.version }} for ${{ matrix.os }}
18+
name: ${{ matrix.version }} ${{ matrix.os }}
1919
runs-on: ${{ matrix.os }}
2020

2121
strategy:
@@ -116,8 +116,13 @@ jobs:
116116
cd ../php-bin
117117
118118
- name: Zip PHP binary, copy metadata
119+
shell: bash
119120
run: |
120-
zip bin/${{ env.SPC_BUILD_OS }}/${{ env.SPC_BUILD_ARCH }}/php-${{ matrix.version }}.zip ../static-php-cli/buildroot/bin/php
121+
if [[ "${{ matrix.os }}" == "windows-latest" ]]; then
122+
powershell Compress-Archive -Path ../static-php-cli/buildroot/bin/php.exe -DestinationPath bin/${{ env.SPC_BUILD_OS }}/${{ env.SPC_BUILD_ARCH }}/php-${{ matrix.version }}.zip
123+
else
124+
zip bin/${{ env.SPC_BUILD_OS }}/${{ env.SPC_BUILD_ARCH }}/php-${{ matrix.version }}.zip ../static-php-cli/buildroot/bin/php
125+
fi
121126
cp ../static-php-cli/buildroot/license/* license-files/
122127
cp ../static-php-cli/buildroot/build-*.json build-meta/
123128

0 commit comments

Comments
 (0)