neiam /action-setup-beam
action-setup-beam
public · Issues · Pulls · Labels · Forks · Compare · Actions queued
⭐
Log in to mark this repository.
Add experimental-otp input opt-in flag
7b728b7 · Denis Kulicek · 2020-10-29 13:27
Files changed
modified
dist/index.js
+6
−2
@@ -3321,13 +3321,17 @@ async function main() {
| 3321 | 3321 | elixirSpec, |
| 3322 | 3322 | otpVersion |
| 3323 | 3323 | ) |
| 3324 | − const osVersion = getOSVersion() | |
| 3325 | 3324 | |
| 3326 | 3325 | let installHex = core.getInput('install-hex') |
| 3327 | 3326 | installHex = installHex == null ? 'true' : installHex |
| 3327 | + | |
| 3328 | 3328 | let installRebar = core.getInput('install-rebar') |
| 3329 | 3329 | installRebar = installRebar == null ? 'true' : installRebar |
| 3330 | 3330 | |
| 3331 | + const experimentalOTP = core.getInput('experimental-otp') | |
| 3332 | + const osVersion = | |
| 3333 | + experimentalOTP === 'true' ? getRunnerOSVersion() : 'ubuntu-14.04' | |
| 3334 | + | |
| 3331 | 3335 | console.log(`##[group]Installing OTP ${otpVersion} - built on ${osVersion}`) |
| 3332 | 3336 | await installOTP(otpVersion, osVersion) |
| 3333 | 3337 | console.log(`##[endgroup]`) |
@@ -3359,7 +3363,7 @@ async function getOtpVersion(spec) {
| 3359 | 3363 | return getVersionFromSpec(spec, await getOtpVersions()) || spec |
| 3360 | 3364 | } |
| 3361 | 3365 | |
| 3362 | −function getOSVersion() { | |
| 3366 | +function getRunnerOSVersion(experimentalOTP) { | |
| 3363 | 3367 | const mapToUbuntuVersion = { |
| 3364 | 3368 | ubuntu16: 'ubuntu-16.04', |
| 3365 | 3369 | ubuntu18: 'ubuntu-18.04', |
modified
src/setup-elixir.js
+6
−2
@@ -23,13 +23,17 @@ async function main() {
| 23 | 23 | elixirSpec, |
| 24 | 24 | otpVersion |
| 25 | 25 | ) |
| 26 | − const osVersion = getOSVersion() | |
| 27 | 26 | |
| 28 | 27 | let installHex = core.getInput('install-hex') |
| 29 | 28 | installHex = installHex == null ? 'true' : installHex |
| 29 | + | |
| 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' | |
| 36 | + | |
| 33 | 37 | console.log(`##[group]Installing OTP ${otpVersion} - built on ${osVersion}`) |
| 34 | 38 | await installOTP(otpVersion, osVersion) |
| 35 | 39 | console.log(`##[endgroup]`) |
@@ -61,7 +65,7 @@ async function getOtpVersion(spec) {
| 61 | 65 | return getVersionFromSpec(spec, await getOtpVersions()) || spec |
| 62 | 66 | } |
| 63 | 67 | |
| 64 | −function getOSVersion() { | |
| 68 | +function getRunnerOSVersion(experimentalOTP) { | |
| 65 | 69 | const mapToUbuntuVersion = { |
| 66 | 70 | ubuntu16: 'ubuntu-16.04', |
| 67 | 71 | ubuntu18: 'ubuntu-18.04', |
Parents: d114e80