45
45
- if : matrix.os == 'macos-13'
46
46
run : echo "SPC_BUILD_ARCH=x86" >> $GITHUB_ENV
47
47
48
- - if : matrix.os == 'macos-latest' || matrix.os == 'macos-13'
48
+ - if : contains( 'macos', matrix.os)
49
49
run : |
50
50
brew install automake gzip
51
51
echo "SPC_BUILD_OS=mac" >> $GITHUB_ENV
@@ -71,14 +71,13 @@ jobs:
71
71
path : ../static-php-cli/vendor
72
72
key : composer-dependencies
73
73
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'
76
76
run : |
77
77
cd ../static-php-cli
78
78
composer update --no-dev --classmap-authoritative
79
79
cd ../php-bin
80
80
81
- # Make sure we have everything we need to run SPC
82
81
- name : SPC doctor
83
82
run : |
84
83
cd ../static-php-cli
@@ -101,7 +100,6 @@ jobs:
101
100
path : ../static-php-cli/downloads
102
101
key : spc-downloads-${{ env.PHP_EXT_HASH }}
103
102
104
- # If there's no downloads cached, fetch sources
105
103
- name : Download PHP extension sources
106
104
if : steps.cache-spc-downloads.outputs.cache-hit != 'true'
107
105
run : |
@@ -115,6 +113,13 @@ jobs:
115
113
./bin/spc build --build-cli "${{ env.PHP_EXTENSIONS }}"
116
114
cd ../php-bin
117
115
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
+
118
123
- name : Zip PHP binary, copy metadata
119
124
shell : bash
120
125
run : |
0 commit comments