mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-17 15:32:10 +08:00
ci: do not use sccache for macOS packaging
It is not compatible with building for multiple architectures.
This commit is contained in:
@@ -10,4 +10,6 @@ if (NOT "$ENV{CMAKE_BUILD_TYPE}" STREQUAL "")
|
|||||||
set(CMAKE_BUILD_TYPE "$ENV{CMAKE_BUILD_TYPE}" CACHE STRING "")
|
set(CMAKE_BUILD_TYPE "$ENV{CMAKE_BUILD_TYPE}" CACHE STRING "")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
include("${CMAKE_CURRENT_LIST_DIR}/configure_sccache.cmake")
|
if (NOT configure_no_sccache)
|
||||||
|
include("${CMAKE_CURRENT_LIST_DIR}/configure_sccache.cmake")
|
||||||
|
endif()
|
||||||
|
@@ -20,5 +20,9 @@ set(CMake_INSTALL_DEPENDENCIES "ON" CACHE BOOL "")
|
|||||||
set(CMAKE_SKIP_RPATH "TRUE" CACHE BOOL "")
|
set(CMAKE_SKIP_RPATH "TRUE" CACHE BOOL "")
|
||||||
set(CMake_TEST_NO_FindPackageModeMakefileTest "TRUE" CACHE BOOL "")
|
set(CMake_TEST_NO_FindPackageModeMakefileTest "TRUE" CACHE BOOL "")
|
||||||
|
|
||||||
|
# XXX(sccache): restore sccache when it works for multiple architectures:
|
||||||
|
# https://github.com/mozilla/sccache/issues/847
|
||||||
|
set(configure_no_sccache 1)
|
||||||
|
|
||||||
include("${CMAKE_CURRENT_LIST_DIR}/configure_macos_common.cmake")
|
include("${CMAKE_CURRENT_LIST_DIR}/configure_macos_common.cmake")
|
||||||
include("${CMAKE_CURRENT_LIST_DIR}/configure_common.cmake")
|
include("${CMAKE_CURRENT_LIST_DIR}/configure_common.cmake")
|
||||||
|
@@ -115,13 +115,8 @@
|
|||||||
|
|
||||||
script:
|
script:
|
||||||
- *before_script_macos
|
- *before_script_macos
|
||||||
- .gitlab/ci/sccache.sh
|
|
||||||
# Allow the server to already be running.
|
|
||||||
- "sccache --start-server || :"
|
|
||||||
- sccache --show-stats
|
|
||||||
- ctest -VV -S .gitlab/ci/ctest_configure.cmake
|
- ctest -VV -S .gitlab/ci/ctest_configure.cmake
|
||||||
- ctest -VV -S .gitlab/ci/ctest_build.cmake
|
- ctest -VV -S .gitlab/ci/ctest_build.cmake
|
||||||
- sccache --show-stats
|
|
||||||
- cd build
|
- cd build
|
||||||
- cpack -G TGZ
|
- cpack -G TGZ
|
||||||
- cpack -G DragNDrop
|
- cpack -G DragNDrop
|
||||||
|
Reference in New Issue
Block a user