Skip to content

Commit

Permalink
fix: elixir and erlang install
Browse files Browse the repository at this point in the history
  • Loading branch information
polvalente committed Jun 7, 2024
1 parent be06538 commit 5eb7be9
Showing 1 changed file with 33 additions and 12 deletions.
45 changes: 33 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
name: release-artifacts

on:
# push:
# tags:
# - "v*"
push:
tags:
- "v*"
branches:
- "*"
workflow_dispatch:

concurrency:
Expand All @@ -25,7 +24,19 @@ jobs:
uses: actions/checkout@v4

- name: Install Erlang and Elixir
uses: erlef/setup-beam@v1
run: |
brew install autoconf coreutils curl git openssl wxwidgets asdf ffmpeg
brew link ffmpeg
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.pair.OTP_VERSION }}
asdf install elixir ${{ matrix.pair.ELIXIR_VERSION }}
asdf global erlang ${{ matrix.pair.OTP_VERSION }}
asdf global elixir ${{ matrix.pair.ELIXIR_VERSION }}
source $(brew --prefix asdf)/libexec/asdf.sh
mix local.hex --force
mix local.rebar --force
- name: Cache mix packages
id: cache-mix-deps
Expand All @@ -38,6 +49,7 @@ 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
- name: Get IREE version
Expand Down Expand Up @@ -65,7 +77,19 @@ jobs:
uses: actions/checkout@v4

- name: Install Erlang and Elixir
uses: erlef/setup-beam@v1
run: |
brew install autoconf coreutils curl git openssl wxwidgets asdf ffmpeg
brew link ffmpeg
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.pair.OTP_VERSION }}
asdf install elixir ${{ matrix.pair.ELIXIR_VERSION }}
asdf global erlang ${{ matrix.pair.OTP_VERSION }}
asdf global elixir ${{ matrix.pair.ELIXIR_VERSION }}
source $(brew --prefix asdf)/libexec/asdf.sh
mix local.hex --force
mix local.rebar --force
- name: Cache mix packages
id: cache-mix-deps
Expand All @@ -77,7 +101,9 @@ jobs:
- name: Get IREE version
id: get-iree-version
run: echo "iree_version=$(mix iree.version)" >> $GITHUB_ENV
run: |
source $(brew --prefix asdf)/libexec/asdf.sh
echo "iree_version=$(mix iree.version)" >> $GITHUB_ENV
- name: Cache IREE source code
id: cache-iree
Expand All @@ -90,8 +116,3 @@ jobs:
- name: Build IREE
run: |
IREE_DIR=${{ env.BUILD_CACHE }}/iree make compile
- name: Build artifacts
run: |
mix compile
mix release

0 comments on commit 5eb7be9

Please sign in to comment.