This commit is contained in:
Dominic Letz 2022-08-25 11:44:03 +02:00 committed by GitHub
parent b21e41843c
commit d332169bcc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 13 deletions

View file

@ -9,18 +9,16 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Install Elixir
- name: Install asdf, erlang, elixir
run: |
wget https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb && sudo dpkg -i erlang-solutions_2.0_all.deb
sudo apt-get update
sudo apt-get install esl-erlang inotify-tools
mkdir $HOME/elixir && cd $HOME/elixir
wget https://github.com/elixir-lang/elixir/releases/download/v1.11.4/Precompiled.zip
unzip Precompiled.zip
echo "$HOME/elixir/bin" >> $GITHUB_PATH
sudo apt install curl git
git clone https://github.com/asdf-vm/asdf.git $HOME/.asdf --branch v0.10.2
. $HOME/.asdf/asdf.sh
asdf plugin-add erlang
asdf plugin-add elixir
- name: Set up hex & rebar
run: |
cd app
asdf install
mix local.hex --force
mix local.rebar --force
@ -30,7 +28,9 @@ jobs:
java-version: 11
- name: Build with Gradle
run: bash ./gradlew assembleDebug --stacktrace
run: |
. $HOME/.asdf/asdf.sh
./gradlew assembleDebug --stacktrace
- name: Upload APK
uses: actions/upload-artifact@v1

View file

@ -1,4 +1,2 @@
Erlang 25.0.4
erlang 25.0.4
Elixir 1.13.4-otp-25
elixir 1.13.4-otp-25