Skip to content

Commit a9ab7fc

Browse files
authored
Fixed MacOS daily & nightly builds due to Homebrew bug (#5467)
* Fixed MacOS nightly builds due to Homebrew bug * Edit workaround * Remove untapping of python2 * Nit edit * Remove installation of mono-libgdiplus * try installing mono-libgdiplus * unlink python 3.8
1 parent ea374c1 commit a9ab7fc

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

build/ci/job-template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
brew untap local/python2
5959
displayName: MacOS Homebrew bug Workaround
6060
- ${{ 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
61+
- script: brew update && brew unlink python@3.8 && brew install mono-libgdiplus && brew install $(Build.SourcesDirectory)/build/libomp.rb && brew link libomp --force
6262
displayName: Install build dependencies
6363
- ${{ if and( eq(parameters.nightlyBuild, 'true'), eq(parameters.pool.name, 'Hosted Ubuntu 1604')) }}:
6464
- bash: echo "##vso[task.setvariable variable=LD_LIBRARY_PATH]$(nightlyBuildRunPath):$LD_LIBRARY_PATH"

build/vsts-ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ phases:
4646
queue:
4747
name: Hosted macOS
4848
steps:
49+
# Work around MacOS Homebrew image/environment bug: https://github.com/actions/virtual-environments/issues/1811
50+
- script: |
51+
brew uninstall openssl@1.0.2t |
52+
brew uninstall python@2.7.17 |
53+
brew untap local/openssl |
54+
brew untap local/python2
55+
displayName: MacOS Homebrew bug Workaround
4956
- script: brew update && brew install $(Build.SourcesDirectory)/build/libomp.rb && brew link libomp --force
5057
displayName: Install build dependencies
5158
# Only build native assets to avoid conflicts.

0 commit comments

Comments
 (0)