File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -82,15 +82,20 @@ runs:
82
82
echo "PQ_LIB_DIR=$PG_LIBDIR" >> $GITHUB_ENV
83
83
84
84
elif [ "$RUNNER_OS" == "macOS" ]; then
85
+ export HOMEBREW_NO_ENV_HINTS=1
85
86
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
86
87
export HOMEBREW_NO_INSTALL_CLEANUP=1
87
88
export HOMEBREW_NO_INSTALL_UPGRADE=1
88
- brew install --skip-post-install postgresql@${{ inputs.postgres-version }}
89
+ brew install --quiet -- skip-post-install postgresql@${{ inputs.postgres-version }}
89
90
90
91
# Link PostgreSQL binaries from /usr/local/bin in order to make them
91
- # available globally. The overwrite option is required since some
92
- # GitHub runners come with preinstalled PostgreSQL binaries.
93
- brew link --overwrite postgresql@${{ inputs.postgres-version }}
92
+ # available globally. The --overwrite option is required since some
93
+ # GitHub runners come with preinstalled PostgreSQL binaries, and we
94
+ # have to link the required version of PostgreSQL. The unlinking step
95
+ # is needed to suppress "Already linked" warning which is propagated
96
+ # back to users.
97
+ brew unlink --quiet postgresql@${{ inputs.postgres-version }}
98
+ brew link --quiet --overwrite postgresql@${{ inputs.postgres-version }}
94
99
fi
95
100
shell : bash
96
101
You can’t perform that action at this time.
0 commit comments