Skip to content

Commit 6c8c099

Browse files
committed
Enable ODBC installer build in ODBC Workflow
1 parent 0e661df commit 6c8c099

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/cpp_extra.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ jobs:
346346
ARROW_BUILD_TYPE: release
347347
ARROW_DEPENDENCY_SOURCE: VCPKG
348348
ARROW_FLIGHT_SQL_ODBC: ON
349+
ARROW_FLIGHT_SQL_ODBC_INSTALLER: ON
349350
ARROW_SIMD_LEVEL: AVX2
350351
CMAKE_CXX_STANDARD: "17"
351352
CMAKE_GENERATOR: Ninja
@@ -434,7 +435,24 @@ jobs:
434435
# GH-48269 TODO: Enable Flight & Flight SQL testing in MSVC CI
435436
# GH-48547 TODO: enable ODBC tests after GH-48270 and GH-48269 are resolved.
436437

437-
# GH-47787 TODO: Build ODBC installer
438+
- name: Install WiX Toolset
439+
shell: pwsh
440+
run: |
441+
Invoke-WebRequest -Uri https://github.com/wixtoolset/wix/releases/download/v6.0.0/wix-cli-x64.msi -OutFile wix-cli-x64.msi
442+
Start-Process -FilePath wix-cli-x64.msi -ArgumentList '/quiet', 'Include_freethreaded=1' -Wait
443+
echo "C:\Program Files\WiX Toolset v6.0\bin\" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
444+
- name: Build MSI ODBC installer
445+
shell: pwsh
446+
run: |
447+
# Verify WiX version
448+
wix --version
449+
cd "${{ github.workspace }}\build\cpp"
450+
cpack
451+
- name: Upload the artifacts to the job
452+
uses: actions/upload-artifact@v6
453+
with:
454+
name: flight-sql-odbc-msi-installer
455+
path: ${{ github.workspace }}\build\cpp\Apache Arrow Flight SQL ODBC-1.0.0-win64.msi
438456

439457
report-extra-cpp:
440458
if: github.event_name == 'schedule' && always()

0 commit comments

Comments
 (0)