* NEW [build_packages.yaml] add sqlite package.
@@ -75,6 +75,34 @@ jobs:
pkg_name="nanomq-$(git describe --abbrev=0 --tags)-linux-${{ matrix.arch[0] }}.rpm"
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
+
+ - name: build with sqlite
+ run: |
+ set -eu
+ cd build
+ rm -rf ../build/*
+ cmake -DCMAKE_C_COMPILER=${{ matrix.arch[1] }} -DCMAKE_CXX_COMPILER=${{ matrix.arch[2] }} -DNNG_ENABLE_TLS=ON -DNNG_ENABLE_SQLITE=ON ..
+ make
+ - name: build deb with sqlite
+ run: |
+ set -eu
+ cd build
+ mkdir -p _packages
+ 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] }}-sqlite.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 sqlite
+ shell: bash
+ run: |
+ set -eu
+ cd build
+ mkdir -p _packages
+ 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] }}-sqlite.rpm"
+ 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
+
- uses: actions/upload-artifact@v2
with:
name: packages
