ci: ensure emqx runtime dependency

This commit is contained in:
Zaiming (Stone) Shi 2022-06-30 12:30:59 +02:00
parent 2d9383842c
commit 34ba414541
2 changed files with 22 additions and 0 deletions

View File

@ -13,4 +13,20 @@ tar -C emqx -zxf "$PKG"
ln -s "$(pwd)/emqx/bin/emqx" /usr/bin/emqx ln -s "$(pwd)/emqx/bin/emqx" /usr/bin/emqx
ln -s "$(pwd)/emqx/bin/emqx_ctl" /usr/bin/emqx_ctl ln -s "$(pwd)/emqx/bin/emqx_ctl" /usr/bin/emqx_ctl
if command -v apt; then
apt update -y
apt install -y \
curl \
jq \
libffi-dev \
libkrb5-3 \
libkrb5-dev \
libncurses5-dev \
libsasl2-2 \
libsasl2-dev \
libsasl2-modules-gssapi-mit \
libssl-dev \
zip
fi
emqx console emqx console

View File

@ -11,6 +11,8 @@ if [ -z "$old_vsn" ]; then
exit 1 exit 1
fi fi
rebuild="${2:-no_rebuild}"
# ensure dir # ensure dir
cd -P -- "$(dirname -- "$0")/../.." cd -P -- "$(dirname -- "$0")/../.."
@ -36,6 +38,10 @@ case "$old_vsn" in
;; ;;
esac esac
if [ "$rebuild" = "--build" ]; then
make "${profile}-tgz"
fi
# From now on, no need for the v|e prefix # From now on, no need for the v|e prefix
OLD_VSN="${old_vsn#[e|v]}" OLD_VSN="${old_vsn#[e|v]}"