Skip to content

Commit 612245c

Browse files
authored
fix: uninstall before install cmake (#15453)
1 parent d233281 commit 612245c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/macos-cmake.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -280,13 +280,9 @@ jobs:
280280
# Tap the local repository
281281
brew tap user/homebrew-tap "${{runner.temp}}/user/homebrew-tap"
282282
283-
# Install CMake from the local tap
283+
# Uninstall existing CMake and install CMake from the local tap
284+
brew uninstall cmake
284285
brew install --build-from-source user/homebrew-tap/cmake
285-
286-
# Clean up the tap
287-
brew untap user/homebrew-tap
288-
cd "${{runner.temp}}"
289-
rm -rf user
290286
- name: Download and Install sccache
291287
if: ${{ inputs.sccache-mode != 'DISABLED' }}
292288
working-directory: "${{runner.temp}}"

0 commit comments

Comments
 (0)