Browse Source

[ci] fix building on mac

Aleksandr Kuzmenko 4 năm trước cách đây
mục cha
commit
bc87c70926
2 tập tin đã thay đổi với 10 bổ sung2 xóa
  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"]);