未验证 提交 2b98fbe8 编写于 作者: M Matthijs van der Burgh 提交者: GitHub

OSX working again on GitHub actions - Fix CI (#1840)

上级 4f1a36ff
xcode-select --install # In case the command line have already been installed, "true" will make it return a non-zero error code to avoid stopping the scripts
xcode-select --install || true
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew update brew update
brew install openblas #!/bin/bash
brew install -vd snappy leveldb gflags glog szip lmdb brew_packages="openblas snappy leveldb gflags glog szip lmdb hdf5 opencv protobuf boost cmake viennacl"
brew install hdf5 opencv for pkg in $brew_packages
do
echo "brew install $pkg || brew upgrade $pkg"
brew install "$pkg" || brew upgrade "$pkg"
done
# with Python pycaffe needs dependencies built from source # with Python pycaffe needs dependencies built from source
#brew install --build-from-source --with-python -vd protobuf #brew install --build-from-source --with-python -vd protobuf
#brew install --build-from-source -vd boost boost-python #brew install --build-from-source -vd boost boost-python
# without Python the usual installation suffices # without Python the usual installation suffices
brew install protobuf boost
brew install cmake pip_packages="numpy<1.17 opencv-python<4.3"
brew install viennacl for pkg in $pip_packages
sudo pip install numpy do
sudo pip install opencv-python echo "sudo -H python2 -m pip install $pkg"
sudo -H python2 -m pip install "$pkg"
done
...@@ -6,5 +6,8 @@ echo "Running on Mac OS." ...@@ -6,5 +6,8 @@ echo "Running on Mac OS."
BASEDIR=$(dirname $0) BASEDIR=$(dirname $0)
source $BASEDIR/defaults.sh source $BASEDIR/defaults.sh
bash scripts/osx/install_brew.sh # To fix linking issue in CI during install of python as dep of opencv
bash scripts/osx/install_deps.sh [[ -f /usr/local/bin/2to3 ]] && rm -f /usr/local/bin/2to3
source ./scripts/osx/install_brew.sh
source ./scripts/osx/install_deps.sh
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册