Collection of DPF-based plugins for packaging
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
798B

  1. if("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "Windows")
  2. execute_process(COMMAND "${CMAKE_COMMAND}" --build "$ENV{GITHUB_WORKSPACE}/cmake-build"
  3. --config $ENV{BUILD_TYPE}
  4. RESULT_VARIABLE result
  5. )
  6. elseif("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "Linux")
  7. execute_process(COMMAND "${CMAKE_COMMAND}" --build "$ENV{GITHUB_WORKSPACE}/cmake-build"
  8. -- -j 3
  9. RESULT_VARIABLE result
  10. )
  11. elseif("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "Darwin")
  12. execute_process(COMMAND "${CMAKE_COMMAND}" --build "$ENV{GITHUB_WORKSPACE}/cmake-build"
  13. --config $ENV{BUILD_TYPE}
  14. -- -j 5
  15. RESULT_VARIABLE result
  16. )
  17. endif()
  18. if(NOT result EQUAL 0)
  19. message(FATAL_ERROR "CMake returned bad exit status")
  20. endif()