Skip to content

Commit f44d84b

Browse files
authored
FIX: Build Pipeline Fix CMake for MacOS (#224)
1 parent 9affeec commit f44d84b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

eng/pipelines/build-whl-pipeline.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,9 @@ jobs:
258258
# Install CMake on macOS
259259
- script: |
260260
brew update
261+
# Uninstall existing CMake to avoid tap conflicts
262+
brew uninstall cmake --ignore-dependencies || echo "CMake not installed or already removed"
263+
# Install CMake from homebrew/core
261264
brew install cmake
262265
displayName: 'Install CMake'
263266
@@ -337,7 +340,7 @@ jobs:
337340
python -m pytest -v
338341
displayName: 'Run Pytest to validate bindings'
339342
env:
340-
DB_CONNECTION_STRING: 'Driver=ODBC Driver 18 for SQL Server;Server=localhost;Database=master;Uid=SA;Pwd=$(DB_PASSWORD);TrustServerCertificate=yes'
343+
DB_CONNECTION_STRING: 'Driver=ODBC Driver 18 for SQL Server;Server=tcp:127.0.0.1,1433;Database=master;Uid=SA;Pwd=$(DB_PASSWORD);TrustServerCertificate=yes'
341344
342345
# Build wheel package for universal2
343346
- script: |

eng/pipelines/pr-validation-pipeline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ jobs:
152152
python -m pytest -v --junitxml=test-results.xml --cov=. --cov-report=xml --capture=tee-sys --cache-clear
153153
displayName: 'Run pytest with coverage'
154154
env:
155-
DB_CONNECTION_STRING: 'Driver=ODBC Driver 18 for SQL Server;Server=localhost;Database=master;Uid=SA;Pwd=$(DB_PASSWORD);TrustServerCertificate=yes'
155+
DB_CONNECTION_STRING: 'Driver=ODBC Driver 18 for SQL Server;Server=tcp:127.0.0.1,1433;Database=master;Uid=SA;Pwd=$(DB_PASSWORD);TrustServerCertificate=yes'
156156
DB_PASSWORD: $(DB_PASSWORD)
157157
158158
- task: PublishTestResults@2

0 commit comments

Comments
 (0)