소스 검색

[ci] fix building on mac

Aleksandr Kuzmenko 4 년 전
부모
커밋
bc87c70926
2개의 변경된 파일10개의 추가작업 그리고 2개의 파일을 삭제
  1. 6 2
      extra/azure-pipelines/build-mac.yml
  2. 4 0
      tests/runci/targets/Flash.hx

+ 6 - 2
extra/azure-pipelines/build-mac.yml

@@ -15,9 +15,13 @@ jobs:
         submodules: recursive
       - script: |
           set -ex
+          brew uninstall [email protected]
+          brew uninstall [email protected]
+          brew untap local/openssl
+          brew untap local/python2
           brew update || brew update || brew update
-          brew unlink python@2
-          brew bundle --file=tests/Brewfile --no-upgrade
+          # brew unlink python@2
+          brew bundle --file=tests/Brewfile --no-upgrade || brew link --overwrite awscli
         displayName: Install dependencies
       - template: install-neko-snapshot.yaml
         parameters:

+ 4 - 0
tests/runci/targets/Flash.hx

@@ -76,6 +76,10 @@ class Flash {
 				if (commandResult("brew", ["cask", "list", "flash-player-debugger"]).exitCode == 0) {
 					return;
 				}
+				runCommand("brew", ["uninstall", "[email protected]"]);
+				runCommand("brew", ["uninstall", "[email protected]"]);
+				runCommand("brew", ["untap", "local/openssl"]);
+				runCommand("brew", ["untap", "local/python2"]);
 				runCommand("brew", ["update"]);
 				runCommand("brew", ["cask", "install", "flash-player-debugger"]);