* FIX [workflow] fix incorrect grammar;
@@ -72,18 +72,19 @@ jobs:
id: prepare
run: |
arch="${{ matrix.arch[0] }}"
- if [ "$arch" = "amd64" ] && [ "${{ matrix.package_type }}" = "rpm" ]; then
+ if [ "$arch" == "amd64" ] && [ "${{ matrix.package_type }}" == "rpm" ]; then
arch="x86_64"
fi
pkg_name="nanomq-$(git describe --abbrev=0 --tags)-linux-${arch}${{ matrix.build_type }}.${{ matrix.package_type }}"
make_flags="-DCMAKE_C_COMPILER=${{ matrix.arch[1] }} -DCMAKE_CXX_COMPILER=${{ matrix.arch[2] }} -DNNG_ENABLE_TLS=ON"
- if [ "${{ matrix.build_type }}" = "-sqlite" ] || [ "${{ matrix.build_type }}" = "-full" ]; then
+
+ if [ "${{ matrix.build_type }}" == "-sqlite" ] || [ "${{ matrix.build_type }}" == "-full" ]; then
make_flags+=" -DNNG_ENABLE_SQLITE=ON"
fi
- if [ "${{ matrix.build_type }}" = "-msquic" ] || [ "${{ matrix.build_type }}" = "-full" ]; then
+ if [ "${{ matrix.build_type }}" == "-msquic" ] || [ "${{ matrix.build_type }}" == "-full" ]; then
make_flags+=" -DNNG_ENABLE_QUIC=ON"
if [ "$arch" != "x86_64" ] && [ "$arch" != "amd64" ]; then
make_flags+=" -DONEBRANCH=1 "
@@ -99,7 +100,7 @@ jobs:
fi
fi
- if [ "${{ matrix.build_type }}" = "-full" ]; then
+ if [ "${{ matrix.build_type }}" == "-full" ]; then
make_flags+=" -DENABLE_JWT=ON "
make_flags+=" -DCMAKE_CROSSCOMPILING=ON "
make_flags+=" -DBUILD_ZMQ_GATEWAY=ON "
