Merge pull request #6871 from terry-xiaoyu/rebar3_download

fix(ci): add some debug print for downloading rebar3
This commit is contained in:
Shawn 2022-01-27 09:57:48 +08:00 committed by GitHub
commit a66bfeaa25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

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

View File

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