Skip to content

Commit

Permalink
macos build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rpandian-spike committed Jun 6, 2022
1 parent 3ed282f commit 51ad36b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/build-c-client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,12 @@
CWD=$(pwd)
SCRIPT_DIR=$(dirname $0)
BASE_DIR=$(cd "${SCRIPT_DIR}/.."; pwd)
SETUP=$1

. ${SCRIPT_DIR}/build-commands.sh

if [ -n "$1" ]; then setup
fi
download_libuv
rebuild_libuv
check_libuv
Expand Down
20 changes: 20 additions & 0 deletions scripts/build-commands.sh
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,26 @@ rebuild_c_client() {
# fi
}

setup() {
if [[ "$OSTYPE" == "darwin"* ]]; then
# # install xcode CLI
# xcode-select —-install
# Check for Homebrew to be present, install if it's missing
if test ! $(which brew); then
echo "Installing homebrew..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
brew update
PACKAGES=(
openssl
)
echo "Installing packages..."
brew install ${PACKAGES[@]}
# link openssl
brew link --force openssl
fi
}

check_aerospike() {

cd ${CWD}
Expand Down

0 comments on commit 51ad36b

Please sign in to comment.