wikimedia / composer-merge-plugin

Merge one or more additional composer.json files at Composer runtime
MIT License
934 stars 159 forks source link

build: Use php and composer from debian packages #215

Closed Krinkle closed 3 years ago

Krinkle commented 3 years ago

GitHub's base images have all the modern php versions pre-installed (as php7.1, php7.2, etc., Debian-style), including composer, xdebug and most anything else we need.

Use that directly, instead of various complex third-party docker and Webpack-compiled Node.js scripts (?) to install other novel PHP binaries, and run-time downloading composer, with each step running in a different container with different packages present.

Runtime from last build before this commit https://github.com/wikimedia/composer-merge-plugin/actions/runs/638619206

Test PHP 7.2 1m 59s | Test PHP 7.3 1m 42s | => ocular-push 1m 35s Test PHP 7.4 1m 17s | Test PHP 8.0 1m 5s |

Runtime from one the builds for this commit: https://github.com/wikimedia/composer-merge-plugin/actions/runs/731586116

Test PHP 7.2 31s | Test PHP 7.3 33s | => ocular-push 14s Test PHP 7.4 37s | Test PHP 8.0 32s |