Skip to content

Commit

Permalink
[build] Fix Homebrew/openssl (#5387)
Browse files Browse the repository at this point in the history
Context: actions/runner-images#1811

Recently some CI builds are ending early, because Homebrew is failing
like this:

    Installing automake
    ...
    stderr | Error: Not a directory @ dir_s_rmdir - /usr/local/Cellar/openssl
     | Removing: /usr/local/Cellar/openssl/1.0.2t... (1,787 files, 12MB)

    Error: Installation of automake failed

Apply the suggested workaround to fix this for now while we wait for
updated macOS images.
  • Loading branch information
radekdoulik authored Dec 8, 2020
1 parent e2c3b38 commit 3433984
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build-tools/automation/azure-pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,9 @@ stages:
parameters:
configuration: $(ApkTestConfiguration)

- script: 'brew uninstall openssl@1.0.2t && rm -rf /usr/local/etc/openssl && rm -rf /usr/local/etc/openssl@1.1'
displayName: fix Homebrew

- script: mono $(System.DefaultWorkingDirectory)/build-tools/xaprepare/xaprepare/bin/$(ApkTestConfiguration)/xaprepare.exe --s=Required --auto-provision=yes --auto-provision-uses-sudo=yes --no-emoji --run-mode=CI
displayName: install required brew tools and prepare java.interop

Expand Down

0 comments on commit 3433984

Please sign in to comment.