mirror of
https://github.com/erlef/setup-beam.git
synced 2026-08-01 11:36:07 +00:00
Remove experimental-otp
This commit is contained in:
@@ -9,9 +9,6 @@ inputs:
|
|||||||
description: Version range or exact version of Elixir to use
|
description: Version range or exact version of Elixir to use
|
||||||
otp-version:
|
otp-version:
|
||||||
description: Version range or exact version of OTP to use
|
description: Version range or exact version of OTP to use
|
||||||
experimental-otp:
|
|
||||||
description: Whether to use experimental builds of OTP (images that have not yet been fully tested include ubuntu-16.04, ubuntu-18.04, ubuntu-20.04)
|
|
||||||
default: false
|
|
||||||
install-hex:
|
install-hex:
|
||||||
description: Whether to install Hex
|
description: Whether to install Hex
|
||||||
default: true
|
default: true
|
||||||
|
|||||||
+2
-4
@@ -30,9 +30,7 @@ async function main() {
|
|||||||
let installRebar = core.getInput('install-rebar')
|
let installRebar = core.getInput('install-rebar')
|
||||||
installRebar = installRebar == null ? 'true' : installRebar
|
installRebar = installRebar == null ? 'true' : installRebar
|
||||||
|
|
||||||
const experimentalOTP = core.getInput('experimental-otp')
|
const osVersion = getRunnerOSVersion()
|
||||||
const osVersion =
|
|
||||||
experimentalOTP === 'true' ? getRunnerOSVersion() : 'ubuntu-14.04'
|
|
||||||
|
|
||||||
console.log(`##[group]Installing OTP ${otpVersion} - built on ${osVersion}`)
|
console.log(`##[group]Installing OTP ${otpVersion} - built on ${osVersion}`)
|
||||||
await installOTP(otpVersion, osVersion)
|
await installOTP(otpVersion, osVersion)
|
||||||
@@ -65,7 +63,7 @@ async function getOtpVersion(spec) {
|
|||||||
return getVersionFromSpec(spec, await getOtpVersions()) || spec
|
return getVersionFromSpec(spec, await getOtpVersions()) || spec
|
||||||
}
|
}
|
||||||
|
|
||||||
function getRunnerOSVersion(experimentalOTP) {
|
function getRunnerOSVersion() {
|
||||||
const mapToUbuntuVersion = {
|
const mapToUbuntuVersion = {
|
||||||
ubuntu16: 'ubuntu-16.04',
|
ubuntu16: 'ubuntu-16.04',
|
||||||
ubuntu18: 'ubuntu-18.04',
|
ubuntu18: 'ubuntu-18.04',
|
||||||
|
|||||||
Reference in New Issue
Block a user