forked from ofi-cray/libfabric-cray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
contrib/cray: Add local and jenkins build scripts
Intended for use with Jenkins and manual build processes Signed-off-by: James Swaro <[email protected]>
- Loading branch information
Showing
5 changed files
with
51 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Copyright 2024 Hewlett Packard Enterprise Development LP. All rights reserved. | ||
# | ||
|
||
set -Exeuo pipefail | ||
|
||
CE_BUILD_SCRIPT_REPO=hpc-shs-ce-devops | ||
CE_CONFIG_BRANCH=${CE_CONFIG_BRANCH:-main} | ||
if [ -d ${CE_BUILD_SCRIPT_REPO} ]; then | ||
git -C ${CE_BUILD_SCRIPT_REPO} checkout ${CE_CONFIG_BRANCH} | ||
git -C ${CE_BUILD_SCRIPT_REPO} pull | ||
else | ||
git clone --branch "${CE_CONFIG_BRANCH}" https://$HPE_GITHUB_TOKEN@github.hpe.com/hpe/${CE_BUILD_SCRIPT_REPO}.git | ||
fi | ||
|
||
. ${CE_BUILD_SCRIPT_REPO}/build/sh/rpmbuild/load.sh | ||
|
||
setup_dst_env | ||
dst_build_rpm -c ${CE_BUILD_SCRIPT_REPO}/build/configs/${CE_CONFIG_FILE} $@ | ||
|
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env | ||
|
||
DIR=$(cd $(dirname $0) && pwd) | ||
|
||
PRODUCT=slingshot-host-software-internal \ | ||
CE_CONFIG_FILE=libfabric-cxi.yaml \ | ||
bash $DIR/build.sh -n $@ |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
DIR=$(cd $(dirname $0) && pwd) | ||
|
||
SHS_LOCAL_BUILD=y \ | ||
BRANCH_NAME=${BRANCH_NAME:-$(git rev-parse --abbrev-ref HEAD)} \ | ||
PRODUCT=slingshot-host-software-internal \ | ||
CE_CONFIG_FILE=libfabric-cxi.yaml \ | ||
bash $DIR/build.sh $@ |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
DIR=$(cd $(dirname $0) && pwd) | ||
|
||
CE_CONFIG_FILE=libfabric-verbs.yaml \ | ||
bash $DIR/build.sh -n $@ |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
DIR=$(cd $(dirname $0) && pwd) | ||
|
||
SHS_LOCAL_BUILD=y \ | ||
BRANCH_NAME=${BRANCH_NAME:-$(git rev-parse --abbrev-ref HEAD)} \ | ||
CE_CONFIG_FILE=libfabric-verbs.yaml \ | ||
bash $DIR/build.sh $@ |