Skip to content
This repository was archived by the owner on Apr 27, 2026. It is now read-only.

Commit d332169

Browse files
authored
Fix CI (#5)
1 parent b21e418 commit d332169

2 files changed

Lines changed: 11 additions & 13 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,16 @@ jobs:
99

1010
steps:
1111
- uses: actions/checkout@v1
12-
- name: Install Elixir
12+
- name: Install asdf, erlang, elixir
1313
run: |
14-
wget https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb && sudo dpkg -i erlang-solutions_2.0_all.deb
15-
sudo apt-get update
16-
sudo apt-get install esl-erlang inotify-tools
17-
mkdir $HOME/elixir && cd $HOME/elixir
18-
wget https://github.com/elixir-lang/elixir/releases/download/v1.11.4/Precompiled.zip
19-
unzip Precompiled.zip
20-
echo "$HOME/elixir/bin" >> $GITHUB_PATH
14+
sudo apt install curl git
15+
git clone https://github.com/asdf-vm/asdf.git $HOME/.asdf --branch v0.10.2
16+
. $HOME/.asdf/asdf.sh
17+
asdf plugin-add erlang
18+
asdf plugin-add elixir
2119
22-
- name: Set up hex & rebar
23-
run: |
20+
cd app
21+
asdf install
2422
mix local.hex --force
2523
mix local.rebar --force
2624
@@ -30,7 +28,9 @@ jobs:
3028
java-version: 11
3129

3230
- name: Build with Gradle
33-
run: bash ./gradlew assembleDebug --stacktrace
31+
run: |
32+
. $HOME/.asdf/asdf.sh
33+
./gradlew assembleDebug --stacktrace
3434
3535
- name: Upload APK
3636
uses: actions/upload-artifact@v1

app/.tool-versions

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
Erlang 25.0.4
21
erlang 25.0.4
3-
Elixir 1.13.4-otp-25
42
elixir 1.13.4-otp-25

0 commit comments

Comments
 (0)