* Workaround a compiler bug in MacOS AppleClang * [CI] Run C++ test with MacOS Catalina + AppleClang 11.0.3 * [CI] Migrate cmake_test on MacOS from Travis CI to GitHub Actions * Install OpenMP runtime * [CI] Use CMake to locate lz4 lib
34 lines
1.3 KiB
Bash
Executable File
34 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ ${TASK} == "python_test" ] || [ ${TASK} == "python_sdist_test" ]; then
|
|
if [ ${TRAVIS_OS_NAME} == "osx" ]; then
|
|
wget -O conda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
|
|
else
|
|
wget -O conda.sh https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
|
|
fi
|
|
bash conda.sh -b -p $HOME/miniconda
|
|
source $HOME/miniconda/bin/activate
|
|
hash -r
|
|
conda config --set always_yes yes --set changeps1 no
|
|
conda update -q conda
|
|
# Useful for debugging any issues with conda
|
|
conda info -a
|
|
conda create -n python3 python=3.7
|
|
fi
|
|
|
|
if [ ${TASK} == "s390x_test" ] && [ ${TRAVIS_CPU_ARCH} == "s390x" ]; then
|
|
sudo snap install cmake --channel=3.17/beta --classic
|
|
export PATH=/snap/bin:${PATH}
|
|
cmake --version
|
|
sudo apt-get update
|
|
sudo apt-get install -y --no-install-recommends tar unzip wget git build-essential ninja-build \
|
|
time python3 python3-pip python3-numpy python3-scipy python3-sklearn r-base
|
|
fi
|
|
|
|
if [ ${TASK} == "python_sdist_test" ] && [ ${TRAVIS_OS_NAME} == "linux" ]; then
|
|
wget https://github.com/Kitware/CMake/releases/download/v3.17.1/cmake-3.17.1-Linux-x86_64.sh
|
|
sudo bash cmake-3.17.1-Linux-x86_64.sh --prefix=/usr/local --skip-license
|
|
sudo rm -rf /usr/local/cmake-3.12.4 # Remove existing CMake
|
|
cmake --version
|
|
fi
|