diff --git a/.github/workflows/build_packages.yaml b/.github/workflows/build_packages.yaml index c4d6b005b..24e173511 100644 --- a/.github/workflows/build_packages.yaml +++ b/.github/workflows/build_packages.yaml @@ -113,6 +113,8 @@ jobs: make ensure-rebar3 copy rebar3 "${{ steps.install_erlang.outputs.erlpath }}\bin" ls "${{ steps.install_erlang.outputs.erlpath }}\bin" + head -2 rebar3 + which rebar3 rebar3 --help make ${{ matrix.profile }} mkdir -p _packages/${{ matrix.profile }} diff --git a/scripts/ensure-rebar3.sh b/scripts/ensure-rebar3.sh index 414e9113e..89058a298 100755 --- a/scripts/ensure-rebar3.sh +++ b/scripts/ensure-rebar3.sh @@ -25,6 +25,7 @@ version() { 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 ## 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{} @@ -33,6 +34,7 @@ if version_gte "${OTP_VSN}" "24.0"; then fi if [ -f 'rebar3' ] && [ "$(version)" = "$VERSION" ]; then + echo "rebar3 ${VERSION} already exists" exit 0 fi