Merge remote-tracking branch 'zmstone/1117-release-only-default-otp' into dev/ee5.0
This commit is contained in:
commit
f0f34be1a4
|
@ -320,15 +320,9 @@ jobs:
|
||||||
run: sudo apt-get update && sudo apt install -y dos2unix
|
run: sudo apt-get update && sudo apt install -y dos2unix
|
||||||
- name: get packages
|
- name: get packages
|
||||||
run: |
|
run: |
|
||||||
DEFAULT_BEAM_PLATFORM='otp24.3.4.2-1'
|
|
||||||
set -e -u
|
set -e -u
|
||||||
cd packages/${{ matrix.profile }}
|
cd packages/${{ matrix.profile }}
|
||||||
# Make a copy of the default OTP version package to a file without OTP version infix
|
# fix the .sha256 file format
|
||||||
while read -r fname; do
|
|
||||||
default_fname=$(echo "$fname" | sed "s/-${DEFAULT_BEAM_PLATFORM}//g")
|
|
||||||
echo "$fname -> $default_fname"
|
|
||||||
cp "$fname" "$default_fname"
|
|
||||||
done < <(find . -maxdepth 1 -type f | grep -E "emqx(-enterprise)?-5\.[0-9]+\.[0-9]+.*-${DEFAULT_BEAM_PLATFORM}" | grep -v elixir)
|
|
||||||
for var in $(ls | grep emqx | grep -v sha256); do
|
for var in $(ls | grep emqx | grep -v sha256); do
|
||||||
dos2unix $var.sha256
|
dos2unix $var.sha256
|
||||||
echo "$(cat $var.sha256) $var" | sha256sum -c || exit 1
|
echo "$(cat $var.sha256) $var" | sha256sum -c || exit 1
|
||||||
|
|
31
pkg-vsn.sh
31
pkg-vsn.sh
|
@ -11,11 +11,10 @@ help() {
|
||||||
echo "$0 PROFILE [options]"
|
echo "$0 PROFILE [options]"
|
||||||
echo
|
echo
|
||||||
echo "-h|--help: To display this usage information"
|
echo "-h|--help: To display this usage information"
|
||||||
echo "--default: Print default vsn number. e.g. e.g. 5.0.0-ubuntu20.04-amd64"
|
echo "--long: Print long vsn number. e.g. 5.0.0-ubuntu20.04-amd64"
|
||||||
echo "--long: Print long vsn number. e.g. 5.0.0-otp24.2.1-1-ubuntu20.04-amd64"
|
|
||||||
echo " Otherwise short e.g. 5.0.0"
|
echo " Otherwise short e.g. 5.0.0"
|
||||||
echo "--elixir: Include elixir version in the long version string"
|
echo "--elixir: Include elixir version in the long version string"
|
||||||
echo " e.g. 5.0.0-elixir1.13.4-otp24.2.1-1-ubuntu20.04-amd64"
|
echo " e.g. 5.0.0-elixir-ubuntu20.04-amd64"
|
||||||
echo "--vsn_matcher: For --long option, replace the EMQX version with '*'"
|
echo "--vsn_matcher: For --long option, replace the EMQX version with '*'"
|
||||||
echo " so it can be used in find commands"
|
echo " so it can be used in find commands"
|
||||||
}
|
}
|
||||||
|
@ -34,10 +33,6 @@ while [ "$#" -gt 0 ]; do
|
||||||
help
|
help
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
--default)
|
|
||||||
IS_DEFAULT_RELEASE='yes'
|
|
||||||
shift 1
|
|
||||||
;;
|
|
||||||
--long)
|
--long)
|
||||||
LONG_VERSION='yes'
|
LONG_VERSION='yes'
|
||||||
shift 1
|
shift 1
|
||||||
|
@ -123,19 +118,8 @@ if [ "${IS_MATCHER:-}" = 'yes' ]; then
|
||||||
PKG_VSN='*'
|
PKG_VSN='*'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
OTP_VSN="${OTP_VSN:-$(./scripts/get-otp-vsn.sh)}"
|
|
||||||
SYSTEM="$(./scripts/get-distro.sh)"
|
SYSTEM="$(./scripts/get-distro.sh)"
|
||||||
|
|
||||||
case "$SYSTEM" in
|
|
||||||
windows*)
|
|
||||||
# directly build the default package for windows
|
|
||||||
IS_DEFAULT_RELEASE='yes'
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
true
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
UNAME_M="$(uname -m)"
|
UNAME_M="$(uname -m)"
|
||||||
case "$UNAME_M" in
|
case "$UNAME_M" in
|
||||||
x86_64)
|
x86_64)
|
||||||
|
@ -149,15 +133,10 @@ case "$UNAME_M" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ "${IS_DEFAULT_RELEASE:-not-default-release}" = 'yes' ]; then
|
if [ "${IS_ELIXIR:-}" = "yes" ]; then
|
||||||
# when it's the default release, we do not add elixir or otp version
|
infix='-elixir'
|
||||||
infix=''
|
|
||||||
else
|
else
|
||||||
infix="-otp${OTP_VSN}"
|
infix=''
|
||||||
if [ "${IS_ELIXIR:-}" = "yes" ]; then
|
|
||||||
ELIXIR_VSN="${ELIXIR_VSN:-$(./scripts/get-elixir-vsn.sh)}"
|
|
||||||
infix="-elixir${ELIXIR_VSN}${infix}"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "${PKG_VSN}${infix}-${SYSTEM}-${ARCH}"
|
echo "${PKG_VSN}${infix}-${SYSTEM}-${ARCH}"
|
||||||
|
|
Loading…
Reference in New Issue