Add support for PHP 8.0.0-dev #104

This commit is contained in:
Shivam Mathur
2019-12-09 08:09:03 +05:30
parent 14acb26bdc
commit 1cf6a369bb
11 changed files with 156 additions and 108 deletions

View File

@@ -42,7 +42,7 @@ export async function build(
export async function run(): Promise<void> {
try {
const os_version: string = process.platform;
const version: string = await utils.getVersion();
const version: string = await utils.getInput('php-version', true);
// check the os version and run the respective script
let script_path = '';
switch (os_version) {
@@ -58,9 +58,7 @@ export async function run(): Promise<void> {
}
case 'win32':
script_path = await build('win32.ps1', version, os_version);
await exec(
'pwsh ' + script_path + ' -version ' + version + ' -dir ' + __dirname
);
await exec('pwsh ' + script_path + ' -version ' + version);
break;
}
} catch (error) {