Skip to content

Commit b4275e1

Browse files
committed
ci: prevent libpq auto-upgrade with HOMEBREW_NO_INSTALL_UPGRADE
1 parent 7e8f2cf commit b4275e1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
# uses strchrnul (26.0-only) → crash at launch on older macOS.
6565
if ! brew list libpq &>/dev/null; then
6666
echo "📦 Installing libpq (from source, targeting macOS 14.0)..."
67-
HOMEBREW_MACOS_DEPLOYMENT_TARGET=14.0 brew install --build-from-source libpq
67+
HOMEBREW_MACOS_DEPLOYMENT_TARGET=14.0 HOMEBREW_NO_INSTALL_UPGRADE=1 brew install --build-from-source libpq
6868
else
6969
echo "✅ libpq already installed"
7070
fi
@@ -321,7 +321,7 @@ jobs:
321321
# uses strchrnul (26.0-only) → crash at launch on older macOS.
322322
if ! arch -x86_64 /usr/local/bin/brew list libpq &>/dev/null; then
323323
echo "📦 Installing libpq (x86_64, from source, targeting macOS 14.0)..."
324-
arch -x86_64 env HOMEBREW_MACOS_DEPLOYMENT_TARGET=14.0 /usr/local/bin/brew install --build-from-source libpq
324+
arch -x86_64 env HOMEBREW_MACOS_DEPLOYMENT_TARGET=14.0 HOMEBREW_NO_INSTALL_UPGRADE=1 /usr/local/bin/brew install --build-from-source libpq
325325
else
326326
echo "✅ libpq (x86_64) already installed"
327327
fi

0 commit comments

Comments
 (0)