|
39 | 39 | key: composer-dependencies
|
40 | 40 |
|
41 | 41 | # name: Set all extensions
|
42 |
| - - run: echo "extensions-all=amqp,apcu,bcmath,bz2,calendar,ctype,curl,dba,dom,exif,ffi,fileinfo,filter,gd,iconv,igbinary,libxml,mbregex,mbstring,msgpack,mysqli,mysqlnd,opcache,openssl,pdo,pdo_mysql,pdo_sqlite,pdo_sqlsrv,phar,redis,session,shmop,simplexml,soap,sockets,sqlite3,sqlsrv,sysvshm,tokenizer,xml,xmlreader,xmlwriter,zip,zlib" >> $env:GITHUB_ENV |
| 42 | + - run: echo "extensions=amqp,apcu,bcmath,bz2,calendar,ctype,curl,dba,dom,exif,ffi,fileinfo,filter,gd,iconv,igbinary,libxml,mbregex,mbstring,msgpack,mysqli,mysqlnd,opcache,openssl,pdo,pdo_mysql,pdo_sqlite,pdo_sqlsrv,phar,redis,session,shmop,simplexml,soap,sockets,sqlite3,sqlsrv,sysvshm,tokenizer,xml,xmlreader,xmlwriter,zip,zlib" >> $env:GITHUB_ENV |
43 | 43 |
|
44 |
| - # name: Set part extensions |
45 |
| - - run: echo "extensions=bcmath,bz2,calendar,ctype,curl,dom,exif,fileinfo,filter,gd,iconv,libxml,mbregex,mbstring,mysqli,mysqlnd,opcache,openssl,pdo,pdo_mysql,phar,redis,session,simplexml,soap,sockets,tokenizer,xml,xmlreader,xmlwriter,zip,zlib" >> $env:GITHUB_ENV |
46 |
| - |
47 | 44 | # If there's no Composer cache, install dependencies
|
48 | 45 | - if: steps.cache-composer-deps.outputs.cache-hit != 'true'
|
49 | 46 | run: composer update --no-dev --classmap-authoritative
|
|
62 | 59 |
|
63 | 60 | - run: ./bin/spc doctor
|
64 | 61 |
|
65 |
| - # Rm php-src |
66 |
| - - run: rm downloads/php-*.tar.xz -Force |
67 |
| - - run: rm buildroot source locale -Force |
68 |
| - |
69 | 62 | # If there's no dependencies cache, fetch sources, with or without debug
|
70 |
| - - run: ./bin/spc download --with-php="${{ matrix.version }}" --for-extensions="${{ env.extensions-all }}" ${{ env.SPC_BUILD_DEBUG }} ${{ env.SPC_PRE_BUILT }} |
| 63 | + - run: ./bin/spc download --with-php="${{ matrix.version }}" --for-extensions="${{ env.extensions }}" ${{ env.SPC_BUILD_DEBUG }} ${{ env.SPC_PRE_BUILT }} |
| 64 | + - run: ./bin/spc switch-php-version ${{ matrix.version }} |
71 | 65 |
|
72 | 66 | # Run build command
|
73 | 67 | - run: ./bin/spc build "${{ env.extensions }}" -I "memory_limit=256M" --with-libs="freetype,libavif,libjpeg,libwebp" ${{ env.SPC_BUILD_DEBUG }} ${{ env.SPC_BUILD_CLI }} ${{ env.SPC_BUILD_MICRO }} ${{ env.SPC_BUILD_FPM }}
|
|
76 | 70 | - if: inputs.build-cli == true
|
77 | 71 | run: mkdir dist2 && cp buildroot/bin/php.exe dist2/ && cd dist2 && tar -zcvf "php-${{ matrix.version }}-windows-x86_64.tar.gz" ./php.exe && rm ./php.exe
|
78 | 72 |
|
79 |
| - # Run build command |
80 |
| - - run: ./bin/spc build "${{ env.extensions-all }}" -I "memory_limit=256M" --with-libs="freetype,libavif,libjpeg,libwebp" ${{ env.SPC_BUILD_DEBUG }} ${{ env.SPC_BUILD_CLI }} ${{ env.SPC_BUILD_MICRO }} ${{ env.SPC_BUILD_FPM }} |
81 |
| - |
82 |
| - # Pack PHP to archive |
83 |
| - - if: inputs.build-cli == true |
84 |
| - run: cp buildroot/bin/php.exe dist2/ && cd dist2 && tar -zcvf "php-${{ matrix.version }}-windows-x86_64-all-extenstions.tar.gz" ./php.exe && rm ./php.exe |
85 |
| - |
86 | 73 | # Upload tar
|
87 | 74 | - if: ${{ inputs.build-cli == true }}
|
88 | 75 | uses: actions/upload-artifact@v4
|
|
0 commit comments