Просмотр исходного кода

chore(CI): use emqx otp in mac by kerl build

zhanghongtong 4 лет назад
Родитель
Сommit
3604593b86

+ 5 - 1
.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

+ 4 - 1
.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