Add support for pre-release pecl extensions

This commit is contained in:
Shivam Mathur
2020-01-26 01:04:09 +05:30
parent e01b2f0bf7
commit b44b7344e0
7 changed files with 103 additions and 57 deletions

View File

@ -29,7 +29,10 @@ export async function build(
const coverage_driver: string = await utils.getInput('coverage', false);
const pecl: string = await utils.getInput('pecl', false);
let tools_csv: string = await utils.getInput('tools', false);
if (pecl == 'true') {
if (
pecl == 'true' ||
/.*-(beta|alpha|devel|snapshot).*/.test(extension_csv)
) {
tools_csv = 'pecl, ' + tools_csv;
}