mirror of
https://github.com/erlef/setup-beam.git
synced 2026-07-30 11:40:48 +00:00
Add Windows to the mix (#49)
This commit is contained in:
Executable
+20
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eo pipefail
|
||||
|
||||
cd "$RUNNER_TEMP"
|
||||
|
||||
VSN=${1}
|
||||
FILE_INPUT="${VSN}.zip"
|
||||
FILE_OUTPUT=elixir.zip
|
||||
DIR_FOR_BIN=.setup-beam/elixir
|
||||
|
||||
rm -f "${FILE_OUTPUT}"
|
||||
rm -rf "${DIR_FOR_BIN}"
|
||||
wget -q -O "${FILE_OUTPUT}" "https://repo.hex.pm/builds/elixir/${FILE_INPUT}"
|
||||
mkdir -p "${DIR_FOR_BIN}"
|
||||
unzip -q -d "${DIR_FOR_BIN}" "${FILE_OUTPUT}"
|
||||
rm -f "${FILE_OUTPUT}"
|
||||
echo "$(pwd)/${DIR_FOR_BIN}/bin" >> "$GITHUB_PATH"
|
||||
echo "Installed Elixir version follows"
|
||||
${DIR_FOR_BIN}/bin/iex -v
|
||||
Reference in New Issue
Block a user