Skip to content

Commit

Permalink
fix: asdf install
Browse files Browse the repository at this point in the history
  • Loading branch information
polvalente committed Jun 7, 2024
1 parent ea0d8e7 commit 81db05b
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Install asdf & tools
uses: asdf-vm/actions/install@v3

- name: Install Erlang and Elixir
run: |
brew install autoconf coreutils curl git openssl wxwidgets asdf
asdf plugin add erlang https://github.com/asdf-vm/asdf-erlang.git
asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git
export KERL_CONFIGURE_OPTIONS="--disable-debug --without-javac"
asdf install erlang ${{ matrix.OTP_VERSION }}
asdf install elixir ${{ matrix.ELIXIR_VERSION }}
asdf global erlang ${{ matrix.OTP_VERSION }}
Expand All @@ -52,15 +51,11 @@ jobs:
- name: Get mix deps
if: steps.cache-mix-deps.outputs.cache-hit != 'true'
run: |
source $(brew --prefix asdf)/libexec/asdf.sh
mix deps.get
run: mix deps.get

- name: Get IREE version
id: get-iree-version
run: |
source $(brew --prefix asdf)/libexec/asdf.sh
echo "iree_version=$(mix iree.version)" >> $GITHUB_ENV
run: echo "iree_version=$(mix iree.version)" >> $GITHUB_ENV

- name: Cache IREE source code
id: cache-iree
Expand All @@ -82,12 +77,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Install asdf & tools
uses: asdf-vm/actions/install@v3

- name: Install Erlang and Elixir
run: |
brew install autoconf coreutils curl git openssl wxwidgets asdf
asdf plugin add erlang https://github.com/asdf-vm/asdf-erlang.git
asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git
export KERL_CONFIGURE_OPTIONS="--disable-debug --without-javac"
asdf install erlang ${{ matrix.OTP_VERSION }}
asdf install elixir ${{ matrix.ELIXIR_VERSION }}
asdf global erlang ${{ matrix.OTP_VERSION }}
Expand All @@ -106,9 +100,7 @@ jobs:
- name: Get IREE version
id: get-iree-version
run: |
source $(brew --prefix asdf)/libexec/asdf.sh
echo "iree_version=$(mix iree.version)" >> $GITHUB_ENV
run: echo "iree_version=$(mix iree.version)" >> $GITHUB_ENV

- name: Cache IREE source code
id: cache-iree
Expand Down

0 comments on commit 81db05b

Please sign in to comment.