File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,14 @@ jobs:
128
128
echo "PHP_EXTENSIONS=$EXTENSIONS" >> $GITHUB_ENV
129
129
echo "PHP_EXT_HASH=$EXT_HASH" >> $GITHUB_ENV
130
130
131
+ - name : Read PHP libraries from file
132
+ id : read-libs
133
+ shell : bash
134
+ run : |
135
+ LIBRARIES=$(php -r "echo trim(file_get_contents('php-libraries.txt'));")
136
+ LIBRARIES_HASH=$(php -r "echo md5(getenv('LIBRARIES'));")
137
+ echo "PHP_LIBS=$LIBRARIES" >> $GITHUB_ENV
138
+
131
139
# Cache downloaded source
132
140
- id : cache-spc-downloads
133
141
uses : actions/cache@v4
@@ -145,7 +153,7 @@ jobs:
145
153
- name : Build PHP
146
154
run : |
147
155
cd ../static-php-cli
148
- ./bin/${{ env.SPC_BINARY }} build --build-cli "${{ env.PHP_EXTENSIONS }}"
156
+ ./bin/${{ env.SPC_BINARY }} build --build-cli "${{ env.PHP_EXTENSIONS }}" --with-libs="${{ env.PHP_LIBS }}"
149
157
cd ../php-bin
150
158
151
159
- name : Get built PHP version
Original file line number Diff line number Diff line change 1
1
.DS_Store
2
+ .idea
3
+ vendor
Original file line number Diff line number Diff line change
1
+ libjpeg,freetype,libwebp
You can’t perform that action at this time.
0 commit comments