* NEW [workflow] add msquic support package (arm64).
@@ -110,6 +110,32 @@ jobs:
sudo mv _packages/nanomq-$(git describe --abbrev=0 --tags)-1.${{ matrix.arch[0] }}.rpm _packages/$pkg_name
cd _packages; echo $(sha256sum $pkg_name | awk '{print $1}') > $pkg_name.sha256
fi
+
+ - name: build with msquic arm64
+ run: |
+ set -eu
+ cd build
+ rm -rf `ls | grep -v _packages`
+ cmake -DNNG_ENABLE_QUIC=ON -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc -DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++ -DCMAKE_TARGET_ARCHITECTURE=arm64 toolchains $PWD/nng/extern/msquic/cmake/toolchains/aarch64-linux.cmake -DGNU_MACHINE=aarch64-linux-gnu -DONEBRANCH=1 ..
+ make
+ - name: build deb with msquic arm64
+ run: |
+ set -eu
+ cd build
+ sudo checkinstall --backup=no --install=no --type=debian --arch=${{ matrix.arch[0] }} --pkgname=nanomq --pkgversion=$(git describe --abbrev=0 --tags) --pkggroup=EMQX --maintainer=EMQX --provides=EMQX --pakdir _packages --recommends=1 --suggests=1 -y
+ pkg_name="nanomq-$(git describe --abbrev=0 --tags)-linux-${{ matrix.arch[0] }}-msquic.deb"
+ sudo mv _packages/nanomq_$(git describe --abbrev=0 --tags)_${{ matrix.arch[0] }}.deb _packages/$pkg_name
+ cd _packages; echo $(sha256sum $pkg_name | awk '{print $1}') > $pkg_name.sha256
+
+ - name: build rpm with msquic arm64
+ run: |
+ set -eu
+ cd build
+ sudo checkinstall --backup=no --install=no --type=rpm --arch=${{ matrix.arch[0] }} --pkgname=nanomq --pkgversion=$(git describe --abbrev=0 --tags) --pkggroup=EMQX --maintainer=EMQX --provides=EMQX --pakdir _packages --recommends=1 --suggests=1 -y
+ pkg_name="nanomq-$(git describe --abbrev=0 --tags)-linux-${{ matrix.arch[0] }}-msquic.rpm"
+ sudo mv _packages/nanomq_$(git describe --abbrev=0 --tags)_${{ matrix.arch[0] }}.rpm _packages/$pkg_name
+ cd _packages; echo $(sha256sum $pkg_name | awk '{print $1}') > $pkg_name.sha256
+
- uses: actions/upload-artifact@v2
with:
name: packages
