File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
- name : Build latest PHP versions for each arch
1
+ name : Build PHP
2
2
3
3
permissions :
4
4
contents : write
15
15
16
16
jobs :
17
17
build :
18
- name : Build latest PHP ${{ matrix.version }} for ${{ matrix.os }}
18
+ name : ${{ matrix.version }} ${{ matrix.os }}
19
19
runs-on : ${{ matrix.os }}
20
20
21
21
strategy :
@@ -116,8 +116,13 @@ jobs:
116
116
cd ../php-bin
117
117
118
118
- name : Zip PHP binary, copy metadata
119
+ shell : bash
119
120
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
121
126
cp ../static-php-cli/buildroot/license/* license-files/
122
127
cp ../static-php-cli/buildroot/build-*.json build-meta/
123
128
You can’t perform that action at this time.
0 commit comments