mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-09-09 06:14:10 +07:00
Sunset support for Ubuntu 16.04
This commit is contained in:
7
dist/index.js
vendored
7
dist/index.js
vendored
@ -438,15 +438,16 @@ async function build(filename, version, os_version) {
|
||||
exports.build = build;
|
||||
async function run() {
|
||||
try {
|
||||
if ((await utils.readEnv('ImageOS')) == 'ubuntu16') {
|
||||
core.setFailed('setup-php is not supported on Ubuntu 16.04. Please upgrade to Ubuntu 18.04 or Ubuntu 20.04 - https://setup-php.com/i/452');
|
||||
return;
|
||||
}
|
||||
core.warning('setup-php v1 is deprecated.\nPlease upgrade to v2 - https://setup-php.com/w/Switch-to-v2');
|
||||
const version = await utils.parseVersion(await utils.getInput('php-version', true));
|
||||
if (version == '8.1') {
|
||||
core.setFailed('PHP 8.1 is not supported on setup-php v1.\nPlease upgrade to v2 - https://setup-php.com/w/Switch-to-v2');
|
||||
return;
|
||||
}
|
||||
if ((await utils.readEnv('ImageOS')) == 'ubuntu16') {
|
||||
core.warning('setup-php will stop working on Ubuntu 16.04 from August 1, 2021. Please upgrade to Ubuntu 18.04 or Ubuntu 20.04 - https://setup-php.com/i/452');
|
||||
}
|
||||
if (version) {
|
||||
const os_version = process.platform;
|
||||
let script_path = '';
|
||||
|
Reference in New Issue
Block a user