Skip to content

Commit

Permalink
Fix the build break in macos release
Browse files Browse the repository at this point in the history
  • Loading branch information
yufenglee committed Dec 8, 2020
1 parent b348538 commit 34d3c82
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ jobs:
displayName: Use Python $(pythonVersion)
inputs:
versionSpec: $(pythonVersion)
- script: brew install coreutils ninja
- script:
# The following line is a hack to prevent build pipeline from failing
brew uninstall openssl@1.0.2t
brew install coreutils ninja
displayName: Install coreutils and ninja
- script: python3 tools/ci_build/build.py --android --build_dir build --android_sdk_path $ANDROID_HOME --android_ndk_path $ANDROID_HOME/ndk-bundle --android_abi=x86_64 --android_api=29 --skip_submodule_sync --parallel --cmake_generator=Ninja --build_java
displayName: CPU EP, Build and Test on Android Emulator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ jobs:
export CMAKE_ARGS="-DONNX_GEN_PB_TYPE_STUBS=OFF -DONNX_WERROR=OFF"
sudo python3 -m pip install -r '$(Build.SourcesDirectory)/tools/ci_build/github/linux/docker/scripts/requirements.txt'
sudo xcode-select --switch /Applications/Xcode_10.app/Contents/Developer
# The following line is a hack to prevent build pipeline from failing
brew uninstall openssl@1.0.2t
brew install libomp
python3 $(Build.SourcesDirectory)/tools/ci_build/build.py --use_openmp --build_dir $(Build.BinariesDirectory) --skip_submodule_sync --parallel --build_shared_lib --config Release
displayName: 'Build and Test MacOS'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
packageFolder: '$(Build.BinariesDirectory)/nuget-artifact'

- script: |
# The following line is a hack to prevent build pipeline from failing
brew uninstall openssl@1.0.2t
brew install libomp
$(Build.SourcesDirectory)/csharp/test/Microsoft.ML.OnnxRuntime.EndToEndTests/runtest.sh \
$(Build.BinariesDirectory)/nuget-artifact \
Expand Down
2 changes: 2 additions & 0 deletions tools/ci_build/github/azure-pipelines/templates/mac-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ jobs:
export CMAKE_ARGS="-DONNX_GEN_PB_TYPE_STUBS=OFF -DONNX_WERROR=OFF"
sudo python3 -m pip install -r '$(Build.SourcesDirectory)/tools/ci_build/github/linux/docker/scripts/requirements.txt'
sudo xcode-select --switch /Applications/Xcode_10.app/Contents/Developer
# The following line is a hack to prevent build pipeline from failing
brew uninstall openssl@1.0.2t
brew install libomp
${{ parameters.BuildCommand }}
displayName: 'Build and Test OnnxRuntime lib for MacOS'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,8 @@ stages:
export CMAKE_ARGS="-DONNX_GEN_PB_TYPE_STUBS=OFF -DONNX_WERROR=OFF"
sudo python3 -m pip install -r '$(Build.SourcesDirectory)/tools/ci_build/github/linux/docker/scripts/requirements.txt'
sudo xcode-select --switch /Applications/Xcode_10.app/Contents/Developer
# The following line is a hack to prevent build pipeline from failing
brew uninstall openssl@1.0.2t
brew install libomp
python3 $(Build.SourcesDirectory)/tools/ci_build/build.py --use_openmp --build_dir $(Build.BinariesDirectory) --skip_submodule_sync --parallel --config Release --skip_onnx_tests --build_wheel ${{ parameters.build_py_parameters }}
displayName: 'Command Line Script'
Expand Down

0 comments on commit 34d3c82

Please sign in to comment.