2 # This script expects to be invoked from the base fio directory.
5 SCRIPT_DIR=$(dirname "$0")
6 # shellcheck disable=SC1091
7 . "${SCRIPT_DIR}/common.sh"
12 cat <<DPKGCFG | sudo tee /etc/dpkg/dpkg.cfg.d/dpkg-speedup > /dev/null
15 # Don't install documentation
16 path-exclude=/usr/share/man/*
17 path-exclude=/usr/share/locale/*/LC_MESSAGES/*.mo
18 path-exclude=/usr/share/doc/*
20 # Packages available on i686 and x86_64
30 case "${CI_TARGET_ARCH}" in
32 sudo dpkg --add-architecture i386
33 pkgs=("${pkgs[@]/%/:i386}")
43 libgoogle-perftools-dev
56 echo "Removing libunwind-14-dev because of conflicts with libunwind-dev"
57 sudo apt remove -y libunwind-14-dev
61 # Architecture-independent packages and packages for which we don't
62 # care about the architecture.
68 echo "Updating APT..."
69 sudo apt-get -qq update
70 echo "Installing packages... ${pkgs[@]}"
71 sudo apt-get install -o APT::Immediate-Configure=false --no-install-recommends -qq -y "${pkgs[@]}"
72 if [ "${CI_TARGET_ARCH}" == "x86_64" ]; then
73 # install librpma from sources
74 ci/actions-install-librpma.sh
83 # Assumes homebrew and python3 are already installed
84 #echo "Updating homebrew..."
85 #brew update >/dev/null 2>&1
86 echo "Installing packages..."
87 HOMEBREW_NO_AUTO_UPDATE=1 brew install cunit libnfs sphinx-doc
88 brew link sphinx-doc --force
89 pip3 install scipy six
93 if [ "${CI_TARGET_BUILD}" = "android" ]; then
94 echo "Installing Android NDK..."
95 wget --quiet https://dl.google.com/android/repository/android-ndk-r24-linux.zip
96 unzip -q android-ndk-r24-linux.zip
102 install_function="install_${CI_TARGET_OS}"
105 echo "Python3 path: $(type -p python3 2>&1)"
106 echo "Python3 version: $(python3 -V 2>&1)"