[php-src] PR #11125: single automated Windows build command, ext/skeleton addons

From: Date: Mon, 24 Apr 2023 03:46:25 +0000
Subject: [php-src] PR #11125: single automated Windows build command, ext/skeleton addons
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-22374@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/11125 Author: TheTechsTech I see this would solve some standing issues with PECL and Windows .dll, https://github.com/php/php-src/issues/10850, https://github.com/grpc/grpc/issues/32304, https://externals.io/message/117494. Running: .\cmd\compile_x64.bat --php version --snap --shared --ts --option enable_extras Will download **php-sdk** and make an _symbolic directory junction link_ for everything to function as the Windows step-by-step build instructions states, but without any more user interaction. Should default to branch version if --php omitted. ```cmd git clone https://github.com/symplely/php-src.git cd php-src .\cmd\compile_x64.bat --snap dir x64\Release_TS\*.zip ``` In case of a module/extension repo, the script will download the PHP version stated, in addition download and compile dependency from source, an _symbolic directory junction link_ will also be made to get everything to function without any more user interaction. Defaults current 8.2.5 version if --php omitted. Here is demonstration of [ext-parallel](https://github.com/krakjoe/parallel/pull/273). ```cmd git clone https://github.com/TheTechsTech/parallel.git cd parallel .\cmd\compile_x64.bat --snap --shared dir php-sdk\phpdev\vs16\x64\php-8.2.5\x64\Release_TS\*.zip ``` To run tests .\cmd\windows_run_test.bat --php version --ts --arch x64 The skeleton additions also adds some base GitHub Actions CI setup to produce Windows binary directly to releases page, in addition to other OS platforms if desired, an example is libuv **ext-uv** extension at <https://github.com/symplely/ext-uv/releases> The .\cmd\getopt.bat and .\cmd\deps_build.bat should be the only files needing heavy modifying by extension author, and deps_build.bat must be renamed.

« previous php.git-pulls (#22374) next »