Skip to content

Commit 54b5b9f

Browse files
committed
set flag
1 parent fc8220f commit 54b5b9f

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/firestore.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ jobs:
118118

119119
env:
120120
MINT_PATH: ${{ github.workspace }}/mint
121+
USE_LATEST_CMAKE: false
121122

122123
runs-on: ${{ matrix.os }}
123124
steps:
@@ -173,6 +174,7 @@ jobs:
173174
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
174175
MINT_PATH: ${{ github.workspace }}/mint
175176
TARGET_DATABASE_ID: ${{ matrix.databaseId }}
177+
USE_LATEST_CMAKE: false
176178

177179
runs-on: ${{ matrix.os }}
178180
steps:
@@ -265,6 +267,7 @@ jobs:
265267

266268
env:
267269
SANITIZERS: ${{ matrix.sanitizer }}
270+
USE_LATEST_CMAKE: false
268271

269272
steps:
270273
- uses: actions/checkout@v4
@@ -316,6 +319,7 @@ jobs:
316319
env:
317320
SANITIZERS: ${{ matrix.sanitizer }}
318321
ASAN_OPTIONS: detect_leaks=0
322+
USE_LATEST_CMAKE: false
319323

320324
steps:
321325
- uses: actions/checkout@v3

scripts/install_prereqs.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,13 @@ case "$project-$platform-$method" in
104104
;;
105105

106106
Firestore-iOS-cmake | Firestore-tvOS-cmake | Firestore-macOS-cmake)
107+
# Only upgrade CMake if explicitly requested
108+
if [[ "${USE_LATEST_CMAKE:-false}" == "true" ]]; then
109+
echo "Use latest CMake because USE_LATEST_CMAKE=true"
110+
brew outdated cmake || brew upgrade cmake
111+
else
112+
echo "Skipping CMake upgrade"
113+
fi
107114
brew outdated go || brew upgrade go # Somehow the build for Abseil requires this.
108115
brew install ccache
109116
brew install ninja

0 commit comments

Comments
 (0)