mirror of
https://github.com/erlef/setup-beam.git
synced 2026-07-23 15:16:08 +00:00
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:
committed by
GitHub
parent
82b4475ba2
commit
d8a37f5aac
@@ -10,13 +10,9 @@ FILE_INPUT="${VSN}.tar.gz"
|
||||
FILE_OUTPUT=otp.tar.gz
|
||||
DIR_FOR_BIN=.setup-beam/otp
|
||||
|
||||
rm -f "${FILE_OUTPUT}"
|
||||
rm -rf "${DIR_FOR_BIN}"
|
||||
wget -q -O "${FILE_OUTPUT}" "https://repo.hex.pm/builds/otp/${OS}/${FILE_INPUT}"
|
||||
mkdir -p "${DIR_FOR_BIN}"
|
||||
tar zxf "${FILE_OUTPUT}" -C "${DIR_FOR_BIN}" --strip-components=1
|
||||
rm -f "${FILE_OUTPUT}"
|
||||
"${DIR_FOR_BIN}/Install" -minimal "$(pwd)/${DIR_FOR_BIN}"
|
||||
echo "$(pwd)/${DIR_FOR_BIN}/bin" >> "$GITHUB_PATH"
|
||||
echo "Installed Erlang/OTP version follows"
|
||||
${DIR_FOR_BIN}/bin/erl -version
|
||||
|
||||
Reference in New Issue
Block a user