Skip to content

Commit

Permalink
contrib/cray: Add local and jenkins build scripts
Browse files Browse the repository at this point in the history
Intended for use with Jenkins and manual build processes

Signed-off-by: James Swaro <[email protected]>
  • Loading branch information
jswaro committed Nov 19, 2024
1 parent a50accb commit f778486
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 0 deletions.
21 changes: 21 additions & 0 deletions contrib/cray/build.sh
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} $@

7 changes: 7 additions & 0 deletions contrib/cray/run.cxi.jenkins
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 $@
9 changes: 9 additions & 0 deletions contrib/cray/run.cxi.local
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 $@
6 changes: 6 additions & 0 deletions contrib/cray/run.verbs.jenkins
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 $@
8 changes: 8 additions & 0 deletions contrib/cray/run.verbs.local
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 $@

0 comments on commit f778486

Please sign in to comment.