blob: 7ed8a104491f0a76d224d63459971fc38956702b [file] [log] [blame]
#!/usr/bin/env bash
set -eo pipefail
APT_PKGS=(
dpkg-dev
g++
libboost-chrono-dev
libboost-date-time-dev
libboost-dev
libboost-log-dev
libboost-program-options-dev
libboost-stacktrace-dev
libboost-test-dev
libboost-thread-dev
libsqlite3-dev
libssl-dev
pkgconf
python3
)
DNF_PKGS=(
boost-devel
gcc-c++
libasan
lld
openssl-devel
pkgconf
python3
sqlite-devel
)
FORMULAE=(boost openssl pkgconf)
set -x
if [[ $ID == macos ]]; then
export HOMEBREW_NO_ENV_HINTS=1
if [[ -n $GITHUB_ACTIONS ]]; then
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
fi
brew update
brew install --formula "${FORMULAE[@]}"
elif [[ $ID_LIKE == *debian* ]]; then
sudo apt-get update -qq
sudo apt-get install -qy --no-install-recommends "${APT_PKGS[@]}"
elif [[ $ID_LIKE == *fedora* ]]; then
sudo dnf install -y "${DNF_PKGS[@]}"
fi