File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments