Merge pull request #6871 from terry-xiaoyu/rebar3_download
fix(ci): add some debug print for downloading rebar3
This commit is contained in:
commit
a66bfeaa25
|
@ -113,6 +113,8 @@ jobs:
|
||||||
make ensure-rebar3
|
make ensure-rebar3
|
||||||
copy rebar3 "${{ steps.install_erlang.outputs.erlpath }}\bin"
|
copy rebar3 "${{ steps.install_erlang.outputs.erlpath }}\bin"
|
||||||
ls "${{ steps.install_erlang.outputs.erlpath }}\bin"
|
ls "${{ steps.install_erlang.outputs.erlpath }}\bin"
|
||||||
|
head -2 rebar3
|
||||||
|
which rebar3
|
||||||
rebar3 --help
|
rebar3 --help
|
||||||
make ${{ matrix.profile }}
|
make ${{ matrix.profile }}
|
||||||
mkdir -p _packages/${{ matrix.profile }}
|
mkdir -p _packages/${{ matrix.profile }}
|
||||||
|
|
|
@ -25,6 +25,7 @@ version() {
|
||||||
head -n 2 ./rebar3 | tail -n 1 | tr ' ' '\n' | grep -E '^.+-emqx-.+'
|
head -n 2 ./rebar3 | tail -n 1 | tr ' ' '\n' | grep -E '^.+-emqx-.+'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo "OTP_VSN: ${OTP_VSN}"
|
||||||
if version_gte "${OTP_VSN}" "24.0"; then
|
if version_gte "${OTP_VSN}" "24.0"; then
|
||||||
## rebar3 tag 3.18.0-emqx-1 is compiled using otp24.1.5.
|
## rebar3 tag 3.18.0-emqx-1 is compiled using otp24.1.5.
|
||||||
## we have to use an otp24-compiled rebar3 because the defination of record #application{}
|
## we have to use an otp24-compiled rebar3 because the defination of record #application{}
|
||||||
|
@ -33,6 +34,7 @@ if version_gte "${OTP_VSN}" "24.0"; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f 'rebar3' ] && [ "$(version)" = "$VERSION" ]; then
|
if [ -f 'rebar3' ] && [ "$(version)" = "$VERSION" ]; then
|
||||||
|
echo "rebar3 ${VERSION} already exists"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue