From 194d8d9140fcbeb7be8c5d401d8f6cd594fc8404 Mon Sep 17 00:00:00 2001 From: Yee Cheng Chin Date: Tue, 10 Sep 2024 03:52:31 -0700 Subject: [PATCH] Test CI --- .github/actions/universal-package/action.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/actions/universal-package/action.yml b/.github/actions/universal-package/action.yml index 5f7e9005fb..679ae7df31 100644 --- a/.github/actions/universal-package/action.yml +++ b/.github/actions/universal-package/action.yml @@ -19,6 +19,16 @@ inputs: runs: using: 'composite' steps: + - name: Upgrade Homebrew + shell: bash + run: | + # Need to make sure we get the latest before patching. Otherwise Homebrew may later try to get the latest + # version and stomp what we have here. + brew update + + # Also upgrade the packages. We don't want these to be done when we are building the package + brew upgrade + - name: Set up formula id: setup-formula shell: bash @@ -27,10 +37,6 @@ runs: set -o pipefail formula=${{ inputs.formula }} - # Need to make sure we get the latest before patching. Otherwise Homebrew may later try to get the latest - # version and stomp what we have here. - brew update - # Patch the official Homebrew formula to explicitly build for min deployment target and a universal binary. We # also need to explicitly use system Clang because Homebrew's bundled clang script tries to inject -march # compiler flags that will cause universal builds to fail as Clang does not like that.