Improve on "Add Windows to the mix" (#52)

* Support more OTP+Windows versions (try to bridge the gap with gleam-lang/setup-erlang that seems to support pre-21 versions)
* Merge ci.yml and test.yml
* Add Elixir to the Windows mix
* Hopefully improve error/warning messages
* Adapt the doc.s to the current reality
* Add option version-type (loose by default, for compatibility)
This commit is contained in:
Paulo F. Oliveira
2021-07-08 15:35:25 +01:00
committed by GitHub
parent 82b4475ba2
commit d8a37f5aac
21 changed files with 499 additions and 258 deletions
+3 -3
View File
@@ -13,7 +13,7 @@ async function installOTP(osVersion, otpVersion) {
await exec(path.join(__dirname, 'install-otp.sh'), [osVersion, otpVersion])
} else if (OS === 'win32') {
const script = path.join(__dirname, 'install-otp.ps1')
await exec(`powershell.exe ${script} -VSN:${otpVersion}`)
await exec(`pwsh.exe ${script} -VSN:${otpVersion}`)
}
}
@@ -28,7 +28,7 @@ async function installElixir(elixirVersion) {
await exec(path.join(__dirname, 'install-elixir.sh'), [elixirVersion])
} else if (OS === 'win32') {
const script = path.join(__dirname, 'install-elixir.ps1')
await exec(`powershell.exe ${script} ${elixirVersion}`)
await exec(`pwsh.exe ${script} -VSN:${elixirVersion}`)
}
}
@@ -43,7 +43,7 @@ async function installRebar3(rebar3Version) {
await exec(path.join(__dirname, 'install-rebar3.sh'), [rebar3Version])
} else if (OS === 'win32') {
const script = path.join(__dirname, 'install-rebar3.ps1')
await exec(`powershell.exe ${script} -VSN:${rebar3Version}`)
await exec(`pwsh.exe ${script} -VSN:${rebar3Version}`)
}
}