GitHub cmake workflow to build libraries as well [skip ci] (#2679)

* cmake to build with java and kotlin

* add kotlin

* turn off python in cmake

* cmake and cpack

---------

Co-authored-by: Jiayu Liu <jiayu.liu@airbnb.com>
diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml
index c4ff747..551c6c4 100644
--- a/.github/workflows/cmake.yml
+++ b/.github/workflows/cmake.yml
@@ -27,14 +27,24 @@
         run: |
           mkdir cmake_build
           cd cmake_build
-          cmake .. -DBUILD_LIBRARIES=OFF
+          cmake .. \
+            -DBUILD_COMPILER=ON \
+            -DBUILD_LIBRARIES=ON \
+            -DWITH_JAVA=ON \
+            -DWITH_PYTHON=OFF \
+            -DWITH_NODEJS=OFF
 
       - name: Run make
         run: |
           cd cmake_build
           cmake --build .
 
+      - name: Run pack
+        run: |
+          cd cmake_build
+          cpack
+
       - name: Run test
         run: |
           cd cmake_build
-          ctest -j$(nproc)
+          ctest -VV