build: ensure rebar3 in PATH for build_packages action

This commit is contained in:
Zaiming Shi 2021-05-27 12:26:47 +02:00 committed by Zaiming (Stone) Shi
parent 96466aba40
commit 0424200978
1 changed files with 4 additions and 0 deletions

View File

@ -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: |