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

build: ensure rebar3 in PATH for build_packages action

Zaiming Shi 4 лет назад
Родитель
Сommit
0424200978
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      .github/workflows/build_packages.yaml

+ 4 - 0
.github/workflows/build_packages.yaml

@@ -95,6 +95,8 @@ jobs:
         if (Test-Path rebar.lock) {
             Remove-Item -Force -Path rebar.lock
         }
+        make ensure-rebar3
+        cp ./rebar3 "${{ steps.install_erlang.outputs.erlpath }}\bin"
         make ${{ matrix.profile }}
         mkdir -p _packages/${{ matrix.profile }}
         Compress-Archive -Path _build/${{ matrix.profile }}/rel/emqx -DestinationPath _build/${{ matrix.profile }}/rel/$pkg_name
@@ -155,6 +157,8 @@ jobs:
     - name: build
       run: |
         . $HOME/.kerl/${{ matrix.erl_otp }}/activate
+        make ensure-rebar3
+        export PATH="$(pwd):$PATH"
         make -C source ${{ matrix.profile }}-zip
     - name: test
       run: |