mirror of
https://github.com/erlef/setup-beam.git
synced 2026-07-22 22:56:07 +00:00
b980a5ac9b
* feat: add escripts to path * Update src/install-elixir.ps1 Co-authored-by: Paulo F. Oliveira <paulo.ferraz.oliveira@gmail.com> * add github action combo to test escript * force install * use os homedir for escript install path Co-authored-by: Paulo F. Oliveira <paulo.ferraz.oliveira@gmail.com>
21 lines
476 B
Bash
Executable File
21 lines
476 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eo pipefail
|
|
|
|
cd "${RUNNER_TEMP}"
|
|
|
|
VSN=${1}
|
|
FILE_INPUT="${VSN}.zip"
|
|
FILE_OUTPUT=elixir.zip
|
|
DIR_FOR_BIN=.setup-beam/elixir
|
|
|
|
wget -q -O "${FILE_OUTPUT}" "https://repo.hex.pm/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}"
|