Skip to content

Commit 9c62f2d

Browse files
authored
fix win more
1 parent c689b3e commit 9c62f2d

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

.github/workflows/build-php.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,23 +37,29 @@ jobs:
3737
git checkout main
3838
cd ../php-bin
3939
40-
- run: echo "SPC_BUILD_ARCH=x64" >> $GITHUB_ENV
40+
- shell: bash
41+
run: echo "SPC_BUILD_ARCH=x64" >> $GITHUB_ENV
4142

42-
- if: matrix.os == 'macos-latest'
43+
- shell: bash
44+
if: matrix.os == 'macos-latest'
4345
run: echo "SPC_BUILD_ARCH=arm64" >> $GITHUB_ENV
4446

45-
- if: matrix.os == 'macos-13'
47+
- shell: bash
48+
if: matrix.os == 'macos-13'
4649
run: echo "SPC_BUILD_ARCH=x86" >> $GITHUB_ENV
4750

48-
- if: contains(matrix.os, 'macos')
51+
- shell: bash
52+
if: contains(matrix.os, 'macos')
4953
run: |
5054
brew install automake gzip
5155
echo "SPC_BUILD_OS=mac" >> $GITHUB_ENV
5256
53-
- if: matrix.os == 'windows-latest'
57+
- shell: bash
58+
if: matrix.os == 'windows-latest'
5459
run: echo "SPC_BUILD_OS=win" >> $GITHUB_ENV
5560

56-
- if: matrix.os == 'ubuntu-latest'
61+
- shell: bash
62+
if: matrix.os == 'ubuntu-latest'
5763
run: echo "SPC_BUILD_OS=linux" >> $GITHUB_ENV
5864

5965
- name: Setup system PHP
@@ -117,7 +123,7 @@ jobs:
117123
shell: bash
118124
run: |
119125
if [[ "${{ matrix.os }}" == "windows-latest" ]]; then
120-
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"
126+
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"
121127
else
122128
mkdir -p tmp-bin
123129
cp ../static-php-cli/buildroot/bin/php tmp-bin/

0 commit comments

Comments
 (0)