Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Update build-locally.sh for windows #137

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 34 additions & 2 deletions build-locally.sh
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,40 @@ function construct_obr_pom_xml {
cd ${WORKSPACE_DIR}/${project}/dev.galasa.uber.obr

# What's the architecture-variable name of the build tool we want for this local build ?
export ARCHITECTURE=$(uname -m) # arm64 or amd64
export GALASA_BUILD_TOOL_NAME=galasabld-darwin-${ARCHITECTURE}
os=$(uname -o)


# Turn the os into lower-case.
case "$os" in
"Darwin"):
os="darwin"
;;
"Linux"):
os="linux"
;;
"GNU/Linux"):
os="linux"
;;
"Windows"):
os="windows"
;;
"Msys"):
os="windows"
;;
*)
error "Unknown machine architecture $os"
exit 1
;;
esac
info "OS is $os"
if [[ "${os}" == "windows" ]]; then
export GALASA_BUILD_TOOL_NAME=galasabld-windows-amd64
else
export ARCHITECTURE=$(uname -m) # arm64 or amd64
export GALASA_BUILD_TOOL_NAME=galasabld-darwin-${ARCHITECTURE}
fi



# Favour the galasabld tool if it's on the path, else use a locally-built version or fail if not available.
GALASABLD_ON_PATH=$(which galasabld)
Expand Down