chore(build): update pkg version
This commit is contained in:
parent
1aefee01c2
commit
d78b2b23c1
|
@ -16,6 +16,8 @@ jobs:
|
||||||
windows:
|
windows:
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
|
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- uses: ilammy/msvc-dev-cmd@v1
|
- uses: ilammy/msvc-dev-cmd@v1
|
||||||
|
@ -64,7 +66,6 @@ jobs:
|
||||||
./_build/emqx/rel/emqx/bin/emqx install
|
./_build/emqx/rel/emqx/bin/emqx install
|
||||||
./_build/emqx/rel/emqx/bin/emqx uninstall
|
./_build/emqx/rel/emqx/bin/emqx uninstall
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v1
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
|
||||||
with:
|
with:
|
||||||
name: emqx
|
name: emqx
|
||||||
path: ./_packages/emqx/.
|
path: ./_packages/emqx/.
|
||||||
|
@ -72,6 +73,8 @@ jobs:
|
||||||
mac:
|
mac:
|
||||||
runs-on: macos-10.15
|
runs-on: macos-10.15
|
||||||
|
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- name: prepare
|
- name: prepare
|
||||||
|
@ -80,6 +83,7 @@ jobs:
|
||||||
echo "/usr/local/bin" >> $GITHUB_PATH
|
echo "/usr/local/bin" >> $GITHUB_PATH
|
||||||
git config --global credential.helper store
|
git config --global credential.helper store
|
||||||
- name: build erlang
|
- name: build erlang
|
||||||
|
timeout-minutes: 60
|
||||||
run: |
|
run: |
|
||||||
kerl build 23.2.2
|
kerl build 23.2.2
|
||||||
kerl install 23.2.2 $HOME/.kerl/23.2.2
|
kerl install 23.2.2 $HOME/.kerl/23.2.2
|
||||||
|
@ -111,7 +115,6 @@ jobs:
|
||||||
rm -rf emqx
|
rm -rf emqx
|
||||||
openssl dgst -sha256 ./_packages/emqx/$pkg_name | awk '{print $2}' > ./_packages/emqx/$pkg_name.sha256
|
openssl dgst -sha256 ./_packages/emqx/$pkg_name | awk '{print $2}' > ./_packages/emqx/$pkg_name.sha256
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v1
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
|
||||||
with:
|
with:
|
||||||
name: emqx
|
name: emqx
|
||||||
path: ./_packages/emqx/.
|
path: ./_packages/emqx/.
|
||||||
|
@ -245,6 +248,8 @@ jobs:
|
||||||
docker:
|
docker:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
arch:
|
arch:
|
||||||
|
@ -280,12 +285,10 @@ jobs:
|
||||||
sudo TARGET=emqx/emqx-edge ARCH=$ARCH QEMU_ARCH=$QEMU_ARCH make docker
|
sudo TARGET=emqx/emqx-edge ARCH=$ARCH QEMU_ARCH=$QEMU_ARCH make docker
|
||||||
cd _packages/emqx-edge && for var in $(ls emqx-edge-docker-* ); do sudo bash -c "echo $(sha256sum $var | awk '{print $1}') > $var.sha256"; done && cd -
|
cd _packages/emqx-edge && for var in $(ls emqx-edge-docker-* ); do sudo bash -c "echo $(sha256sum $var | awk '{print $1}') > $var.sha256"; done && cd -
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v1
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
|
||||||
with:
|
with:
|
||||||
name: emqx
|
name: emqx
|
||||||
path: ./_packages/emqx/.
|
path: ./_packages/emqx/.
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v1
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
|
||||||
with:
|
with:
|
||||||
name: emqx-edge
|
name: emqx-edge
|
||||||
path: ./_packages/emqx-edge/.
|
path: ./_packages/emqx-edge/.
|
||||||
|
|
12
pkg-vsn.sh
12
pkg-vsn.sh
|
@ -1,12 +1,20 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
set -e -u
|
||||||
|
|
||||||
# This script prints the release version for emqx
|
# This script prints the release version for emqx
|
||||||
|
|
||||||
# ensure dir
|
# ensure dir
|
||||||
cd -P -- "$(dirname -- "$0")"
|
cd -P -- "$(dirname -- "$0")"
|
||||||
|
|
||||||
|
case $(uname) in
|
||||||
|
*Darwin*) SED="sed -E";;
|
||||||
|
*) SED="sed -r";;
|
||||||
|
esac
|
||||||
|
|
||||||
# comment SUFFIX out when finalising RELEASE
|
# comment SUFFIX out when finalising RELEASE
|
||||||
RELEASE="4.3.0"
|
RELEASE="$(grep -oE '\{vsn, (.*)\}' src/emqx.app.src | $SED 's/\{vsn, (.*)\}/\1/g' | $SED 's/\"//g')"
|
||||||
SUFFIX="-pre-$(git rev-parse HEAD | cut -b1-8)"
|
if [ -d .git ] && ! git describe --tags --match "v${RELEASE}" --exact >/dev/null 2>&1; then
|
||||||
|
SUFFIX="-$(git rev-parse HEAD | cut -b1-8)"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "${RELEASE}${SUFFIX:-}"
|
echo "${RELEASE}${SUFFIX:-}"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{application, emqx,
|
{application, emqx,
|
||||||
[{description, "EMQ X Broker"},
|
[{description, "EMQ X Broker"},
|
||||||
{id, "emqx"},
|
{id, "emqx"},
|
||||||
{vsn, "4.3.0"}, % strict semver, bump manually!
|
{vsn, "4.3-alpha.1"}, % strict semver, bump manually!
|
||||||
{modules, []},
|
{modules, []},
|
||||||
{registered, []},
|
{registered, []},
|
||||||
{applications, [kernel,stdlib,gproc,gen_rpc,esockd,cowboy,sasl,os_mon]},
|
{applications, [kernel,stdlib,gproc,gen_rpc,esockd,cowboy,sasl,os_mon]},
|
||||||
|
|
Loading…
Reference in New Issue