Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Build on MacOS. #740

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
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
10 changes: 6 additions & 4 deletions scripts/components/OpenSearch-Dashboards/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,18 @@ fi

[ -z "$OUTPUT" ] && OUTPUT=artifacts

OS=`uname -s | awk '{print tolower($0)}'`

# Assemble distribution artifact
# see https://github.com/opensearch-project/OpenSearch/blob/main/settings.gradle#L34 for other distribution targets
case $ARCHITECTURE in
x64)
TARGET="--linux"
QUALIFIER="linux-x64"
TARGET="--$OS"
QUALIFIER="$OS-x64"
;;
arm64)
TARGET="--linux-arm"
QUALIFIER="linux-arm64"
TARGET="--$OS-arm"
QUALIFIER="$OS-arm64"
;;
*)
echo "Unsupported architecture: ${ARCHITECTURE}"
Expand Down
10 changes: 6 additions & 4 deletions scripts/components/OpenSearch/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,18 @@ mkdir -p $OUTPUT/maven/org/opensearch
# Copy maven publications to be promoted
cp -r ./build/local-test-repo/org/opensearch "${OUTPUT}"/maven/org

OS=`uname -s | awk '{print tolower($0)}'`

# Assemble distribution artifact
# see https://github.com/opensearch-project/OpenSearch/blob/main/settings.gradle#L34 for other distribution targets
case $ARCHITECTURE in
x64)
TARGET="linux-tar"
QUALIFIER="linux-x64"
TARGET="$OS-tar"
QUALIFIER="$OS-x64"
;;
arm64)
TARGET="linux-arm64-tar"
QUALIFIER="linux-arm64"
TARGET="$OS-arm64-tar"
QUALIFIER="$OS-arm64"
;;
*)
echo "Unsupported architecture: ${ARCHITECTURE}"
Expand Down
5 changes: 5 additions & 0 deletions scripts/components/k-NN/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ if [ "$ARCHITECTURE" = "arm64" ]; then
sed -i -e 's/-march=native/-march=armv8-a/g' external/nmslib/similarity_search/CMakeLists.txt
fi

if [ "$JAVA_HOME" = "" ]; then
export JAVA_HOME=`/usr/libexec/java_home`
echo "SET JAVA_HOME=$JAVA_HOME"
fi

cmake .
make

Expand Down