Unverified Commit a53abd96 authored by Nikita Titov's avatar Nikita Titov Committed by GitHub
Browse files

[ci] update SWIG installation on macOS (#3477)

* Update .vsts-ci.yml

* Update setup.sh

* Update .vsts-ci.yml

* Update .vsts-ci.yml

* try not to hardcode path
parent aab8cdc5
...@@ -15,7 +15,7 @@ if [[ $OS_NAME == "macos" ]]; then ...@@ -15,7 +15,7 @@ if [[ $OS_NAME == "macos" ]]; then
brew install open-mpi brew install open-mpi
fi fi
if [[ $AZURE == "true" ]] && [[ $TASK == "sdist" ]]; then if [[ $AZURE == "true" ]] && [[ $TASK == "sdist" ]]; then
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/f3544543a3115023fc7ca962c21d14b443f419d0/Formula/swig.rb # swig 3.0.12 brew install swig@3
fi fi
wget -q -O conda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh wget -q -O conda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
else # Linux else # Linux
......
...@@ -91,6 +91,7 @@ jobs: ...@@ -91,6 +91,7 @@ jobs:
CONDA=$AGENT_HOMEDIRECTORY/miniconda CONDA=$AGENT_HOMEDIRECTORY/miniconda
echo "##vso[task.setvariable variable=CONDA]$CONDA" echo "##vso[task.setvariable variable=CONDA]$CONDA"
echo "##vso[task.prependpath]$CONDA/bin" echo "##vso[task.prependpath]$CONDA/bin"
echo "##vso[task.prependpath]$(brew --prefix swig@3)/bin"
echo "##vso[task.setvariable variable=JAVA_HOME]$JAVA_HOME_8_X64" echo "##vso[task.setvariable variable=JAVA_HOME]$JAVA_HOME_8_X64"
displayName: 'Set variables' displayName: 'Set variables'
- bash: $(Build.SourcesDirectory)/.ci/setup.sh - bash: $(Build.SourcesDirectory)/.ci/setup.sh
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment