diff --git a/build/ci/job-template.yml b/build/ci/job-template.yml index 52abf2dc99..9e5e19cfc3 100644 --- a/build/ci/job-template.yml +++ b/build/ci/job-template.yml @@ -49,8 +49,16 @@ jobs: container: ${{ parameters.container }} steps: + # Work around MacOS Homebrew image/environment bug: https://github.com/actions/virtual-environments/issues/1811 - ${{ if eq(parameters.pool.name, 'Hosted macOS') }}: - - 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 + - script: | + brew uninstall openssl@1.0.2t | + brew uninstall python@2.7.17 | + brew untap local/openssl | + brew untap local/python2 + displayName: MacOS Homebrew bug Workaround + - ${{ if eq(parameters.pool.name, 'Hosted macOS') }}: + - script: brew update && brew install cmake $(Build.SourcesDirectory)/build/libomp.rb && brew install mono-libgdiplus gettext && brew link gettext --force && brew link libomp --force displayName: Install build dependencies - ${{ if and( eq(parameters.nightlyBuild, 'true'), eq(parameters.pool.name, 'Hosted Ubuntu 1604')) }}: - bash: echo "##vso[task.setvariable variable=LD_LIBRARY_PATH]$(nightlyBuildRunPath):$LD_LIBRARY_PATH"