@@ -37,23 +37,29 @@ jobs:
37
37
git checkout main
38
38
cd ../php-bin
39
39
40
- - run : echo "SPC_BUILD_ARCH=x64" >> $GITHUB_ENV
40
+ - shell : bash
41
+ run : echo "SPC_BUILD_ARCH=x64" >> $GITHUB_ENV
41
42
42
- - if : matrix.os == 'macos-latest'
43
+ - shell : bash
44
+ if : matrix.os == 'macos-latest'
43
45
run : echo "SPC_BUILD_ARCH=arm64" >> $GITHUB_ENV
44
46
45
- - if : matrix.os == 'macos-13'
47
+ - shell : bash
48
+ if : matrix.os == 'macos-13'
46
49
run : echo "SPC_BUILD_ARCH=x86" >> $GITHUB_ENV
47
50
48
- - if : contains(matrix.os, 'macos')
51
+ - shell : bash
52
+ if : contains(matrix.os, 'macos')
49
53
run : |
50
54
brew install automake gzip
51
55
echo "SPC_BUILD_OS=mac" >> $GITHUB_ENV
52
56
53
- - if : matrix.os == 'windows-latest'
57
+ - shell : bash
58
+ if : matrix.os == 'windows-latest'
54
59
run : echo "SPC_BUILD_OS=win" >> $GITHUB_ENV
55
60
56
- - if : matrix.os == 'ubuntu-latest'
61
+ - shell : bash
62
+ if : matrix.os == 'ubuntu-latest'
57
63
run : echo "SPC_BUILD_OS=linux" >> $GITHUB_ENV
58
64
59
65
- name : Setup system PHP
@@ -117,7 +123,7 @@ jobs:
117
123
shell : bash
118
124
run : |
119
125
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"
121
127
else
122
128
mkdir -p tmp-bin
123
129
cp ../static-php-cli/buildroot/bin/php tmp-bin/
0 commit comments