test(CI): update build packages
remove unnecessary steps from the workflow for building a package
This commit is contained in:
parent
fcf6743173
commit
d90bf9a1db
|
@ -64,6 +64,7 @@ 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/.
|
||||||
|
@ -96,6 +97,7 @@ 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/.
|
||||||
|
@ -193,7 +195,7 @@ jobs:
|
||||||
docker volume prune -f
|
docker volume prune -f
|
||||||
done
|
done
|
||||||
- name: build emqx packages on arm64
|
- name: build emqx packages on arm64
|
||||||
if: matrix.os != 'centos6'
|
if: matrix.os != 'centos6' && startsWith(github.ref, 'refs/tags/')
|
||||||
env:
|
env:
|
||||||
ERL_OTP: erl22.3
|
ERL_OTP: erl22.3
|
||||||
SYSTEM: ${{ matrix.os }}
|
SYSTEM: ${{ matrix.os }}
|
||||||
|
@ -237,11 +239,12 @@ jobs:
|
||||||
cd -
|
cd -
|
||||||
fi
|
fi
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v1
|
||||||
if: matrix.os != 'raspbian9' && matrix.os != 'raspbian10'
|
if: startsWith(github.ref, 'refs/tags/') && matrix.os != 'raspbian9' && matrix.os != 'raspbian10'
|
||||||
with:
|
with:
|
||||||
name: emqx
|
name: emqx
|
||||||
path: /tmp/packages/emqx/.
|
path: /tmp/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: /tmp/packages/emqx-edge/.
|
path: /tmp/packages/emqx-edge/.
|
||||||
|
@ -282,10 +285,12 @@ 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/.
|
||||||
|
@ -295,6 +300,7 @@ jobs:
|
||||||
|
|
||||||
needs: [windows, mac, linux, docker]
|
needs: [windows, mac, linux, docker]
|
||||||
|
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v2
|
||||||
|
@ -319,7 +325,6 @@ jobs:
|
||||||
cd -
|
cd -
|
||||||
done
|
done
|
||||||
- name: upload aws s3
|
- name: upload aws s3
|
||||||
if: contains(github.ref, 'refs/tags/')
|
|
||||||
run: |
|
run: |
|
||||||
set -e -x -u
|
set -e -x -u
|
||||||
version=$(echo ${{ github.ref }} | sed -r "s ^refs/heads/|^refs/tags/(.*) \1 g")
|
version=$(echo ${{ github.ref }} | sed -r "s ^refs/heads/|^refs/tags/(.*) \1 g")
|
||||||
|
|
Loading…
Reference in New Issue