Skip to content

Commit 8db281a

Browse files
authored
fixes
1 parent b38d04a commit 8db281a

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/build-php.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- if: matrix.os == 'macos-13'
4646
run: echo "SPC_BUILD_ARCH=x86" >> $GITHUB_ENV
4747

48-
- if: matrix.os == 'macos-latest' || matrix.os == 'macos-13'
48+
- if: contains('macos', matrix.os)
4949
run: |
5050
brew install automake gzip
5151
echo "SPC_BUILD_OS=mac" >> $GITHUB_ENV
@@ -71,14 +71,13 @@ jobs:
7171
path: ../static-php-cli/vendor
7272
key: composer-dependencies
7373

74-
# If there's no Composer cache, install dependencies
75-
- if: steps.cache-spc-composer-deps.outputs.cache-hit != 'true'
74+
- name: Install SPC Composer dependencies
75+
if: steps.cache-spc-composer-deps.outputs.cache-hit != 'true'
7676
run: |
7777
cd ../static-php-cli
7878
composer update --no-dev --classmap-authoritative
7979
cd ../php-bin
8080
81-
# Make sure we have everything we need to run SPC
8281
- name: SPC doctor
8382
run: |
8483
cd ../static-php-cli
@@ -101,7 +100,6 @@ jobs:
101100
path: ../static-php-cli/downloads
102101
key: spc-downloads-${{ env.PHP_EXT_HASH }}
103102

104-
# If there's no downloads cached, fetch sources
105103
- name: Download PHP extension sources
106104
if: steps.cache-spc-downloads.outputs.cache-hit != 'true'
107105
run: |
@@ -115,6 +113,13 @@ jobs:
115113
./bin/spc build --build-cli "${{ env.PHP_EXTENSIONS }}"
116114
cd ../php-bin
117115
116+
- name: Install Zip on WSL
117+
if: matrix.os == 'windows-latest'
118+
shell: bash
119+
run: |
120+
sudo apt-get update
121+
sudo apt-get install zip -y
122+
118123
- name: Zip PHP binary, copy metadata
119124
shell: bash
120125
run: |

0 commit comments

Comments
 (0)