neiam /action-setup-beam
action-setup-beam
public · Issues · Pulls · Labels · Forks · Compare · Actions queued
⭐
Log in to mark this repository.
Remove experimental-otp
3622b49 · Eric Meadows-Jönsson · 2021-01-12 00:51
Files changed
modified
action.yml
+0
−3
@@ -9,9 +9,6 @@ inputs:
| 9 | 9 | description: Version range or exact version of Elixir to use |
| 10 | 10 | otp-version: |
| 11 | 11 | description: Version range or exact version of OTP to use |
| 12 | − experimental-otp: | |
| 13 | − 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) | |
| 14 | − default: false | |
| 15 | 12 | install-hex: |
| 16 | 13 | description: Whether to install Hex |
| 17 | 14 | default: true |
modified
src/setup-elixir.js
+2
−4
@@ -30,9 +30,7 @@ async function main() {
| 30 | 30 | let installRebar = core.getInput('install-rebar') |
| 31 | 31 | installRebar = installRebar == null ? 'true' : installRebar |
| 32 | 32 | |
| 33 | − const experimentalOTP = core.getInput('experimental-otp') | |
| 34 | − const osVersion = | |
| 35 | − experimentalOTP === 'true' ? getRunnerOSVersion() : 'ubuntu-14.04' | |
| 33 | + const osVersion = getRunnerOSVersion() | |
| 36 | 34 | |
| 37 | 35 | console.log(`##[group]Installing OTP ${otpVersion} - built on ${osVersion}`) |
| 38 | 36 | await installOTP(otpVersion, osVersion) |
@@ -65,7 +63,7 @@ async function getOtpVersion(spec) {
| 65 | 63 | return getVersionFromSpec(spec, await getOtpVersions()) || spec |
| 66 | 64 | } |
| 67 | 65 | |
| 68 | −function getRunnerOSVersion(experimentalOTP) { | |
| 66 | +function getRunnerOSVersion() { | |
| 69 | 67 | const mapToUbuntuVersion = { |
| 70 | 68 | ubuntu16: 'ubuntu-16.04', |
| 71 | 69 | ubuntu18: 'ubuntu-18.04', |
Parents: 96441ef