diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f2142b9689..f377bc468f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -119,6 +119,36 @@ jobs: path: main submodules: true + - name: Set up Elixir + id: beam + uses: erlef/setup-beam@v1.18.2 + with: + elixir-version: '1.17.3' + otp-version: '27.1' + + - name: Cache anoma + id: cache-anoma + uses: actions/cache@v3 + with: + path: | + ${{ env.HOME }}/anoma + key: "${{ runner.os }}-anoma" + + - name: Install anoma + run: >- + cd $HOME + git clone https://github.com/anoma/anoma.git + cd anoma + git checkout 98e3660b91cd55f1d9424dcff9420425ae98f5f8 + mix deps.get + mix escript.install hex protobuf + mix compile + mix do --app anoma_client escript.build + + - name: Install grpcurl + run: >- + curl -sSL "https://github.com/fullstorydev/grpcurl/releases/download/v1.9.1/grpcurl_1.9.1_linux_x86_64.tar.gz" | tar -xz -C ~/.local/bin --no-wildcards grpcurl + - name: Cache LLVM and Clang id: cache-llvm uses: actions/cache@v3 @@ -146,6 +176,10 @@ jobs: run: | echo "WASI_SYSROOT_PATH=$GITHUB_WORKSPACE/wasi-sysroot" >> $GITHUB_ENV + - name: Set ANOMA_PATH + run: | + echo "ANOMA_PATH=$HOME/anoma" >> $GITHUB_ENV + - name: Add ~/.local/bin to PATH run: | mkdir -p "$HOME/.local/bin"