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

This reverts commit b65ec607db09f2efdb7397acde88fd53cfb97f6b.
diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml
index 551c6c4..c4ff747 100644
--- a/.github/workflows/cmake.yml
+++ b/.github/workflows/cmake.yml
@@ -27,24 +27,14 @@
         run: |
           mkdir cmake_build
           cd cmake_build
-          cmake .. \
-            -DBUILD_COMPILER=ON \
-            -DBUILD_LIBRARIES=ON \
-            -DWITH_JAVA=ON \
-            -DWITH_PYTHON=OFF \
-            -DWITH_NODEJS=OFF
+          cmake .. -DBUILD_LIBRARIES=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 -VV
+          ctest -j$(nproc)