From 81db05b1a2a7b14c9ac85d7edeb87139b59c1f9a Mon Sep 17 00:00:00 2001 From: Paulo Valente <16843419+polvalente@users.noreply.github.com> Date: Fri, 7 Jun 2024 17:39:34 -0300 Subject: [PATCH] fix: asdf install --- .github/workflows/ci.yml | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 99d3d29..5c37240 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }} @@ -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 @@ -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 }} @@ -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