Install from hex

This commit is contained in:
Eric Meadows-Jönsson
2019-11-17 19:30:42 +01:00
parent ca25180aa6
commit 14bacb3367
9 changed files with 82 additions and 234 deletions

8
src/install-elixir Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
set -eo pipefail
wget -q https://repo.hex.pm/builds/elixir/v${1}-otp-${2}.zip
unzip -d .setup-elixir/elixir v${1}-otp-${2}.zip
rm v${1}-otp-${2}.zip
echo "::add-path::$(pwd)/.setup-elixir/elixir/bin"