Skip to content

Commit fff04be

Browse files
authored
fix
1 parent 63dcdb8 commit fff04be

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/build-php.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,10 @@ jobs:
119119
if [[ "${{ matrix.os }}" == "windows-latest" ]]; then
120120
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"
121121
else
122-
zip bin/${{ env.SPC_BUILD_OS }}/${{ env.SPC_BUILD_ARCH }}/php-${{ matrix.version }}.zip ../static-php-cli/buildroot/bin/php
122+
mkdir -p tmp-bin
123+
cp ../static-php-cli/buildroot/bin/php tmp-bin/
124+
zip bin/${{ env.SPC_BUILD_OS }}/${{ env.SPC_BUILD_ARCH }}/php-${{ matrix.version }}.zip tmp-bin/php
125+
rm -rf tmp-bin
123126
fi
124127
cp ../static-php-cli/buildroot/license/* license-files/
125128
cp ../static-php-cli/buildroot/build-extensions.json build-meta/build-extensions-${{ env.SPC_BUILD_OS }}.json

0 commit comments

Comments
 (0)