Skip to content

Commit bffba75

Browse files
committed
MacOS homebrew bug workaround
1 parent e6e5528 commit bffba75

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

build/ci/job-template.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,15 @@ jobs:
5555
container: ${{ parameters.container }}
5656

5757
steps:
58+
# Work around MacOS Homebrew image/environment bug: https://github.com/actions/virtual-environments/issues/2322#issuecomment-749211076
59+
- ${{ if eq(parameters.pool.name, 'Hosted macOS') }}:
60+
- script: |
61+
rm -rf /usr/local/bin/2to3
62+
displayName: MacOS Homebrew bug Workaround
63+
continueOnError: true
5864
# Extra MacOS step required to install OS-specific dependencies
5965
- ${{ if eq(parameters.pool.name, 'Hosted macOS') }}:
60-
- script: brew update && brew unlink [email protected] && brew install mono-libgdiplus && brew install $(Build.SourcesDirectory)/build/libomp.rb && brew link libomp --force
66+
- script: brew update && brew install mono-libgdiplus && brew install $(Build.SourcesDirectory)/build/libomp.rb && brew link libomp --force
6167
displayName: Install MacOS build dependencies
6268
- ${{ if and( eq(parameters.nightlyBuild, 'true'), eq(parameters.pool.name, 'Hosted Ubuntu 1604')) }}:
6369
- bash: echo "##vso[task.setvariable variable=LD_LIBRARY_PATH]$(nightlyBuildRunPath):$LD_LIBRARY_PATH"

0 commit comments

Comments
 (0)