From 3604593b8620a4566775e0b895817c4fa6cab286 Mon Sep 17 00:00:00 2001 From: zhanghongtong Date: Thu, 10 Jun 2021 09:59:12 +0800 Subject: [PATCH] chore(CI): use emqx otp in mac by kerl build --- .github/workflows/build_packages.yaml | 6 +++++- .github/workflows/build_slim_packages.yaml | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_packages.yaml b/.github/workflows/build_packages.yaml index 69ad6acf9..2090f722e 100644 --- a/.github/workflows/build_packages.yaml +++ b/.github/workflows/build_packages.yaml @@ -133,7 +133,7 @@ jobs: matrix: profile: ${{fromJSON(needs.prepare.outputs.profiles)}} erl_otp: - - erl23.2.7.2-emqx-2 + - 23.2.7.2-emqx-2 exclude: - profile: emqx-edge @@ -158,7 +158,11 @@ jobs: - name: build erlang if: steps.cache.outputs.cache-hit != 'true' timeout-minutes: 60 + env: + KERL_BUILD_BACKEND: git + OTP_GITHUB_URL: https://github.com/emqx/otp run: | + kerl update releases kerl build ${{ matrix.erl_otp }} kerl install ${{ matrix.erl_otp }} $HOME/.kerl/${{ matrix.erl_otp }} - name: build diff --git a/.github/workflows/build_slim_packages.yaml b/.github/workflows/build_slim_packages.yaml index 08a35299c..6c9bbf04a 100644 --- a/.github/workflows/build_slim_packages.yaml +++ b/.github/workflows/build_slim_packages.yaml @@ -81,8 +81,11 @@ jobs: - name: build erlang if: steps.cache.outputs.cache-hit != 'true' timeout-minutes: 60 + env: + KERL_BUILD_BACKEND: git + OTP_GITHUB_URL: https://github.com/emqx/otp run: | - export OTP_GITHUB_URL="https://github.com/emqx/otp" + kerl update releases kerl build ${{ matrix.erl_otp }} kerl install ${{ matrix.erl_otp }} $HOME/.kerl/${{ matrix.erl_otp }} - name: build