Skip to content

Commit f5aa7da

Browse files
authored
Fixed MacOS CI Pipeline builds (#5457)
* Added MacOS Homebrew bug fix * nit fix
1 parent 212b5df commit f5aa7da

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

build/ci/job-template.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,16 @@ jobs:
4949
container: ${{ parameters.container }}
5050

5151
steps:
52+
# Work around MacOS Homebrew image/environment bug: https://github.com/actions/virtual-environments/issues/1811
5253
- ${{ if eq(parameters.pool.name, 'Hosted macOS') }}:
53-
- script: brew update && brew install $(Build.SourcesDirectory)/build/libomp.rb && brew unlink python@2 && brew install mono-libgdiplus gettext && brew link gettext --force && brew link libomp --force
54+
- script: |
55+
brew uninstall [email protected] |
56+
brew uninstall [email protected] |
57+
brew untap local/openssl |
58+
brew untap local/python2
59+
displayName: MacOS Homebrew bug Workaround
60+
- ${{ if eq(parameters.pool.name, 'Hosted macOS') }}:
61+
- script: brew update && brew install cmake $(Build.SourcesDirectory)/build/libomp.rb && brew install mono-libgdiplus gettext && brew link gettext --force && brew link libomp --force
5462
displayName: Install build dependencies
5563
- ${{ if and( eq(parameters.nightlyBuild, 'true'), eq(parameters.pool.name, 'Hosted Ubuntu 1604')) }}:
5664
- bash: echo "##vso[task.setvariable variable=LD_LIBRARY_PATH]$(nightlyBuildRunPath):$LD_LIBRARY_PATH"

0 commit comments

Comments
 (0)