mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-08 11:37:04 +09:00

* Simplify numasupport * short-circuit * Cleanup from QUIC readme * Address CR feedback: early bail for < 2 NUMA nodes * Fix node numbering, which is 0-based
50 lines
1.3 KiB
Bash
Executable file
50 lines
1.3 KiB
Bash
Executable file
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
# This is a simple script primarily used for CI to install necessary dependencies
|
|
#
|
|
# Usage:
|
|
#
|
|
# ./install-native-dependencies.sh <OS>
|
|
|
|
os="$(echo "$1" | tr "[:upper:]" "[:lower:]")"
|
|
|
|
if [ -z "$os" ]; then
|
|
. "$(dirname "$0")"/native/init-os-and-arch.sh
|
|
fi
|
|
|
|
case "$os" in
|
|
linux)
|
|
if [ -e /etc/os-release ]; then
|
|
. /etc/os-release
|
|
fi
|
|
|
|
if [ "$ID" != "debian" ] && [ "$ID_LIKE" != "debian" ]; then
|
|
echo "Unsupported distro. distro: $ID"
|
|
exit 1
|
|
fi
|
|
|
|
apt update
|
|
|
|
apt install -y build-essential gettext locales cmake llvm clang lldb liblldb-dev libunwind8-dev libicu-dev liblttng-ust-dev \
|
|
libssl-dev libkrb5-dev zlib1g-dev
|
|
|
|
localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
|
|
;;
|
|
|
|
osx|maccatalyst|ios|iossimulator|tvos|tvossimulator)
|
|
echo "Installed xcode version: $(xcode-select -p)"
|
|
|
|
export HOMEBREW_NO_INSTALL_CLEANUP=1
|
|
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
|
|
# Skip brew update for now, see https://github.com/actions/setup-python/issues/577
|
|
# brew update --preinstall
|
|
brew bundle --no-upgrade --no-lock --file "$(dirname "$0")/Brewfile"
|
|
;;
|
|
|
|
*)
|
|
echo "Unsupported platform. OS: $os"
|
|
exit 1
|
|
;;
|
|
esac
|