From 987a7d1b89ddad586f0701ad3b2f5e30c3f389f9 Mon Sep 17 00:00:00 2001 From: Guen Prawiroatmodjo Date: Mon, 12 Apr 2021 13:02:41 -0700 Subject: [PATCH 1/4] Update prerequisites.ps1 --- src/Qir/Runtime/prerequisites.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Qir/Runtime/prerequisites.ps1 b/src/Qir/Runtime/prerequisites.ps1 index 72ae1b5079c..265705de221 100644 --- a/src/Qir/Runtime/prerequisites.ps1 +++ b/src/Qir/Runtime/prerequisites.ps1 @@ -8,6 +8,7 @@ if ($Env:ENABLE_QIRRUNTIME -ne "false") { choco install ninja } } elseif ($IsMacOS) { + brew update brew install ninja } else { sudo apt update From d78952017b2ea6040078369520c69d42dcfc321f Mon Sep 17 00:00:00 2001 From: Guen Prawiroatmodjo Date: Mon, 12 Apr 2021 13:33:21 -0700 Subject: [PATCH 2/4] Update prerequisites.ps1 --- src/Simulation/Native/prerequisites.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Simulation/Native/prerequisites.ps1 b/src/Simulation/Native/prerequisites.ps1 index e7f32efff04..88d812a35a2 100644 --- a/src/Simulation/Native/prerequisites.ps1 +++ b/src/Simulation/Native/prerequisites.ps1 @@ -4,6 +4,7 @@ if (($IsMacOS) -or ((Test-Path Env:AGENT_OS) -and ($Env:AGENT_OS.StartsWith("Darwin")))) { # building with gcc-9 succeeds but some of the unit tests fail Write-Host "Install gcc-7 as pre-req for building native simulator on MacOS" + brew update brew install gcc@7 } else { Write-Host "No pre-reqs for building native simulator on platforms other than MacOS" From c80583953f513de5d7c9bc6cb34a697b438f84a4 Mon Sep 17 00:00:00 2001 From: Guen Prawiroatmodjo Date: Mon, 12 Apr 2021 13:48:19 -0700 Subject: [PATCH 3/4] Update prerequisites.ps1 --- src/Qir/Runtime/prerequisites.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Qir/Runtime/prerequisites.ps1 b/src/Qir/Runtime/prerequisites.ps1 index 265705de221..35e9b351aba 100644 --- a/src/Qir/Runtime/prerequisites.ps1 +++ b/src/Qir/Runtime/prerequisites.ps1 @@ -8,6 +8,9 @@ if ($Env:ENABLE_QIRRUNTIME -ne "false") { choco install ninja } } elseif ($IsMacOS) { + # temporary workaround for Bintray sunset + # remove this after Homebrew is updated to 3.1.1 on MacOS image, see: + # https://github.com/actions/virtual-environments/blob/main/images/macos/macos-10.15-Readme.md brew update brew install ninja } else { From 2f9a02e9c5e7c9b25991f8006bcfed99d5f43d10 Mon Sep 17 00:00:00 2001 From: Guen Prawiroatmodjo Date: Mon, 12 Apr 2021 13:49:06 -0700 Subject: [PATCH 4/4] Add note on temporary 'brew update' workaround --- src/Simulation/Native/prerequisites.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Simulation/Native/prerequisites.ps1 b/src/Simulation/Native/prerequisites.ps1 index 88d812a35a2..3f1272ffa84 100644 --- a/src/Simulation/Native/prerequisites.ps1 +++ b/src/Simulation/Native/prerequisites.ps1 @@ -4,6 +4,9 @@ if (($IsMacOS) -or ((Test-Path Env:AGENT_OS) -and ($Env:AGENT_OS.StartsWith("Darwin")))) { # building with gcc-9 succeeds but some of the unit tests fail Write-Host "Install gcc-7 as pre-req for building native simulator on MacOS" + # temporary workaround for Bintray sunset + # remove this after Homebrew is updated to 3.1.1 on MacOS image, see: + # https://github.com/actions/virtual-environments/blob/main/images/macos/macos-10.15-Readme.md brew update brew install gcc@7 } else {