From: Michael Wallner Date: Thu, 17 Dec 2020 11:03:05 +0000 (+0100) Subject: ci: try msys2 command on windows X-Git-Tag: 1.1.0-beta1~45 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=1419585ea96c095448da2a455580f5905ddd2177;p=awesomized%2Flibmemcached ci: try msys2 command on windows --- diff --git a/CPack.txt b/CPack.txt index 92ea4503..09fb6207 100644 --- a/CPack.txt +++ b/CPack.txt @@ -94,9 +94,15 @@ endif() # keep last include(CPack) +set(PUSH_ARTIFACTS_SH "${CMAKE_SOURCE_DIR}/scripts/push-artifacts.sh") +if(WIN32) + set(PUSH_ARTIFACTS_CMD msys2 -c '${PUSH_ARTIFACTS_SH} ${CPACK_PACKAGE_DIRECTORY}/') +else() + set(PUSH_ARTIFACTS_CMD ${PUSH_ARTIFACTS_SH} ${CPACK_PACKAGE_DIRECTORY}/) +endif() + add_custom_target(push-artifacts - COMMAND - bash ${CMAKE_SOURCE_DIR}/scripts/push-artifacts.sh "${CPACK_PACKAGE_DIRECTORY}/" + COMMAND ${PUSH_ARTIFACTS_CMD} WORKING_DIRECTORY ${CPACK_BINARY_DIR} )