Browse Source

For CI - temporarily exclude RPM and DEB package generation during CI packaging build.
Close #2368
[ci package]

Yao Wei Tjong 姚伟忠 7 years ago
parent
commit
b817c3437d
1 changed files with 15 additions and 11 deletions
  1. 15 11
      CMakeLists.txt

+ 15 - 11
CMakeLists.txt

@@ -122,20 +122,24 @@ elseif (CPACK_SYSTEM_NAME STREQUAL Linux)
         set (CPACK_DEBIAN_PACKAGE_ARCHITECTURE i386)
         set (CPACK_DEBIAN_PACKAGE_ARCHITECTURE i386)
         set (CPACK_RPM_PACKAGE_ARCHITECTURE i686)       # The 'package' target should be built with the help of 'setarch i686' command on a 64-bit host system
         set (CPACK_RPM_PACKAGE_ARCHITECTURE i686)       # The 'package' target should be built with the help of 'setarch i686' command on a 64-bit host system
     endif ()
     endif ()
-    if (NOT URHO3D_64BIT OR HAS_LIB64)
-        list (APPEND CPACK_GENERATOR RPM)
-    endif ()
-    if (NOT URHO3D_64BIT OR NOT HAS_LIB64)
-        list (APPEND CPACK_GENERATOR DEB)
-    endif ()
-    if (URHO3D_64BIT)
-        if (URHO3D_USE_LIB64_RPM AND NOT HAS_LIB64)
-            set (CPACK_GENERATOR RPM)
-        elseif (URHO3D_USE_LIB_DEB AND HAS_LIB64)
-            set (CPACK_GENERATOR DEB)
+    # TODO: Temporary disable RPM and DEB package generation for CI as it has run out of disk space for a few of the target platforms.
+    if (NOT DEFINED ENV{CI})
+        if (NOT URHO3D_64BIT OR HAS_LIB64)
+            list (APPEND CPACK_GENERATOR RPM)
+        endif ()
+        if (NOT URHO3D_64BIT OR NOT HAS_LIB64)
+            list (APPEND CPACK_GENERATOR DEB)
+        endif ()
+        if (URHO3D_64BIT)
+            if (URHO3D_USE_LIB64_RPM AND NOT HAS_LIB64)
+                set (CPACK_GENERATOR RPM)
+            elseif (URHO3D_USE_LIB_DEB AND HAS_LIB64)
+                set (CPACK_GENERATOR DEB)
+            endif ()
         endif ()
         endif ()
     endif ()
     endif ()
     # Note to package maintainer: comment out below line to revert the prefix from '/usr/local' (default for CMAKE_INSTALL_PREFIX) to '/usr' (default for CPACK_PACKAGING_INSTALL_PREFIX)
     # Note to package maintainer: comment out below line to revert the prefix from '/usr/local' (default for CMAKE_INSTALL_PREFIX) to '/usr' (default for CPACK_PACKAGING_INSTALL_PREFIX)
+    # Revisit this later, some users insist it should be '/usr' (see https://github.com/urho3d/Urho3D/issues/2166), even though clearly we are not trying to build "system package" here
     set (CPACK_PACKAGING_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
     set (CPACK_PACKAGING_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
 endif ()
 endif ()
 if (URHO3D_64BIT)
 if (URHO3D_64BIT)