mirror of
https://github.com/erlef/setup-beam.git
synced 2026-07-22 22:56:07 +00:00
cf692c3264
* New option to work with one or more hex.pm mirrors Add a new option called `hexpm-mirrors` for one or more hex.pm mirrors. Default list is `builds.hex.pm`, so behavior is unaffected unless option is used. Signed-off-by: Paul Guyot <pguyot@kallisys.net> * Implement suggested rewording changes from @paulo-ferraz-oliveira Co-authored-by: Paulo F. Oliveira <paulo.ferraz.oliveira@gmail.com> Signed-off-by: Paul Guyot <pguyot@kallisys.net> --------- Signed-off-by: Paul Guyot <pguyot@kallisys.net> Co-authored-by: Paulo F. Oliveira <paulo.ferraz.oliveira@gmail.com>
22 lines
486 B
Bash
Executable File
22 lines
486 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eo pipefail
|
|
|
|
cd "${RUNNER_TEMP}"
|
|
|
|
VSN=${1}
|
|
HEX_MIRROR=${2}
|
|
FILE_INPUT="${VSN}.zip"
|
|
FILE_OUTPUT=elixir.zip
|
|
DIR_FOR_BIN=.setup-beam/elixir
|
|
|
|
wget -q -O "${FILE_OUTPUT}" "${HEX_MIRROR}/builds/elixir/${FILE_INPUT}"
|
|
mkdir -p "${DIR_FOR_BIN}"
|
|
unzip -q -o -d "${DIR_FOR_BIN}" "${FILE_OUTPUT}"
|
|
echo "Installed Elixir version follows"
|
|
${DIR_FOR_BIN}/bin/elixir -v
|
|
|
|
mkdir -p "${HOME}/.mix/escripts"
|
|
|
|
echo "INSTALL_DIR_FOR_ELIXIR=${RUNNER_TEMP}/${DIR_FOR_BIN}" >> "${GITHUB_ENV}"
|