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:
128128 echo "PHP_EXTENSIONS=$EXTENSIONS" >> $GITHUB_ENV
129129 echo "PHP_EXT_HASH=$EXT_HASH" >> $GITHUB_ENV
130130
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+
131139 # Cache downloaded source
132140 - id : cache-spc-downloads
133141 uses : actions/cache@v4
@@ -145,7 +153,7 @@ jobs:
145153 - name : Build PHP
146154 run : |
147155 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 }}"
149157 cd ../php-bin
150158
151159 - name : Get built PHP version
Original file line number Diff line number Diff line change 11.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