@@ -16,12 +16,13 @@ jobs:
1616 runs-on : macos-11
1717 env :
1818 TFLITE_BEAM_PREFER_PRECOMPILED : " false"
19+ elixir_version : " 1.15.2"
1920 name : macOS ${{ matrix.pair.arch }} - OTP ${{ matrix.otp }}
2021
2122 strategy :
2223 fail-fast : false
2324 matrix :
24- otp : ["erlang@25 ", "erlang@26 "]
25+ otp : ["25.3.2.3 ", "26.0.2 "]
2526 include :
2627 - pair :
2728 arch : x86_64
@@ -35,14 +36,23 @@ jobs:
3536
3637 - name : Install Erlang and Elixir
3738 run : |
38- brew install elixir ${{ matrix.otp }} autoconf automake
39+ brew install autoconf coreutils curl git openssl asdf
40+ asdf plugin add erlang https://github.com/asdf-vm/asdf-erlang.git
41+ asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git
42+ export KERL_CONFIGURE_OPTIONS="--disable-debug --without-javac"
43+ asdf install erlang ${{ matrix.otp }}
44+ asdf install elixir ${{ env.elixir_version }}
45+ asdf global erlang ${{ matrix.otp }}
46+ asdf global elixir ${{ env.elixir_version }}
47+ source $(brew --prefix asdf)/libexec/asdf.sh
3948 mix local.hex --force
4049 mix local.rebar --force
4150 wget https://s3.amazonaws.com/rebar3/rebar3 && chmod +x rebar3
4251 ./rebar3 local install
4352
4453 - name : Create precompiled library
4554 run : |
55+ source $(brew --prefix asdf)/libexec/asdf.sh
4656 export PATH="~/.cache/rebar3/bin:$PATH"
4757
4858 export NIF_VERSION="$(erl -noshell -eval "io:format('~ts', [erlang:system_info(nif_version)])." -s erlang halt)"
0 commit comments