-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
3 changed files
with
28 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -199,6 +199,9 @@ if (TESTS) | |
add_test(zn_large_data_test bash routed.sh zn_large_data_test) | ||
endif(TESTS) | ||
|
||
|
||
|
||
|
||
# For packaging | ||
if (PACKAGING) | ||
|
||
|
@@ -223,19 +226,16 @@ if (PACKAGING) | |
set(CPACK_COMPONENT_LIB_DESCRIPTION "The C client library for Eclipse zenoh") | ||
set(CPACK_COMPONENT_DEV_DESCRIPTION "${CPACK_COMPONENT_LIB_DESCRIPTION} - devel files") | ||
|
||
# Sources package | ||
set(CPACK_SOURCE_GENERATOR "TGZ") | ||
set(CPACK_SOURCE_IGNORE_FILES "/.git/;/build/") | ||
set(CPACK_SOURCE_PACKAGE_FILE_NAME "${PROJECT_NAME}-${PROJECT_VERSION}") | ||
set(CPACK_SOURCE_PACKAGE_FILE_NAME "${PROJECT_NAME}-src-${PROJECT_VERSION}") | ||
set(CPACK_GENERATOR "") | ||
|
||
if(CMAKE_SYSTEM_NAME STREQUAL "Linux") | ||
message(STATUS "Configure packaging for Linux ${TARGET_ARCH}") | ||
# Sources package | ||
set(CPACK_SOURCE_GENERATOR "TGZ") | ||
set(CPACK_SOURCE_IGNORE_FILES "/.git/;/build/") | ||
set(CPACK_SOURCE_PACKAGE_FILE_NAME "${PROJECT_NAME}-${PROJECT_VERSION}") | ||
|
||
set(CPACK_GENERATOR "DEB;RPM") | ||
|
||
# DEB package | ||
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "ADLINK zenoh team, <[email protected]>") | ||
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE ${TARGET_ARCH}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
pipeline { | ||
agent { label 'UbuntuVM' } | ||
agent { label 'MacMini' } | ||
parameters { | ||
gitParameter name: 'TAG', | ||
type: 'PT_TAG', | ||
|
@@ -32,16 +32,32 @@ pipeline { | |
steps { | ||
sh ''' | ||
docker images || true | ||
make all-cross | ||
make all all-cross | ||
''' | ||
} | ||
} | ||
stage('Deploy to to download.eclipse.org') { | ||
stage('Deploy to download.eclipse.org') { | ||
steps { | ||
sshagent ( ['projects-storage.eclipse.org-bot-ssh']) { | ||
sh ''' | ||
ssh [email protected] mkdir -p /home/data/httpd/download.eclipse.org/zenoh/zenoh-c/${TAG} | ||
scp build/crossbuilds/*/*.deb* build/crossbuilds/*/*.rpm* [email protected]:/home/data/httpd/download.eclipse.org/zenoh/zenoh-c/${TAG}/ | ||
HOST="[email protected]" | ||
DOWNLOAD_DIR="/home/data/httpd/download.eclipse.org/zenoh/zenoh-c/${TAG}" | ||
ssh ${HOST} rm -fr ${DOWNLOAD_DIR} | ||
ssh ${HOST} mkdir -p ${DOWNLOAD_DIR} | ||
for PLATFORM in `ls build/crossbuilds/`; do | ||
echo "Deploy for platform: ${PLATFORM}" | ||
ssh ${HOST} mkdir -p ${DOWNLOAD_DIR}/${PLATFORM} | ||
scp build/crossbuilds/${PLATFORM}/libzenohc*.* build/crossbuilds/${PLATFORM}/z_* build/crossbuilds/${PLATFORM}/zn_* ${DOWNLOAD_DIR}/${PLATFORM}/ | ||
done | ||
echo "Deploy for platform: OSX" | ||
ssh ${HOST} mkdir -p ${DOWNLOAD_DIR}/OSX | ||
scp build/crossbuilds/${PLATFORM}/libzenohc*.* build/crossbuilds/${PLATFORM}/z_* build/crossbuilds/${PLATFORM}/zn_* ${DOWNLOAD_DIR}/OSX/ | ||
echo "Deploy include files" | ||
tar czvf zenoh-c-includes.tgz include/ | ||
scp zenoh-c-includes.tgz ${DOWNLOAD_DIR}/ | ||
''' | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters