zeek/ci/macos/prepare.sh
Benjamin Bannier 279372b6f9 Install libmaxminddb in macOS CI
(cherry picked from commit dfba2d6df7)
2024-01-18 14:09:51 -08:00

19 lines
581 B
Bash
Executable file

#!/bin/sh
echo "Preparing macOS environment"
sysctl hw.model hw.machine hw.ncpu hw.physicalcpu hw.logicalcpu
set -e
set -x
brew update
brew upgrade cmake
brew install openssl@3 swig bison flex ccache libmaxminddb
python3 -m pip install --user websockets
# Brew doesn't create the /opt/homebrew/opt/openssl symlink if you install
# openssl@1.1, only with 3.0. Create the symlink if it doesn't exist.
#if [ ! -e /opt/homebrew/opt/openssl ]; then
# if [ -d /opt/homebrew/opt/openssl@1.1 ]; then
# ln -s /opt/homebrew/opt/openssl@1.1 /opt/homebrew/opt/openssl
# fi
#fi