mirror of
https://github.com/erlef/setup-beam.git
synced 2026-07-23 15:16:08 +00:00
d8a37f5aac
* 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)
18 lines
401 B
Bash
Executable File
18 lines
401 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eo pipefail
|
|
|
|
cd "$RUNNER_TEMP"
|
|
|
|
VSN=${1}
|
|
FILE_INPUT=rebar3
|
|
FILE_OUTPUT=rebar3
|
|
DIR_FOR_BIN=.setup-beam/rebar3
|
|
|
|
wget -q -O "${FILE_OUTPUT}" "https://github.com/erlang/rebar3/releases/download/${VSN}/${FILE_INPUT}"
|
|
mkdir -p "${DIR_FOR_BIN}/bin"
|
|
chmod +x "${FILE_OUTPUT}"
|
|
mv "${FILE_OUTPUT}" "${DIR_FOR_BIN}/bin"
|
|
echo "Installed rebar3 version follows"
|
|
${DIR_FOR_BIN}/bin/rebar3 version
|