|
26 | 26 | - '.dockerignore' |
27 | 27 | - '.github/workflows/check_labels.yml' |
28 | 28 | - '.github/workflows/cpp_extra.yml' |
| 29 | + - '.github/workflows/cpp_windows.yml' |
29 | 30 | - '.github/workflows/report_ci.yml' |
30 | 31 | - 'ci/conda_env_*' |
31 | 32 | - 'ci/docker/**' |
|
47 | 48 | - '.dockerignore' |
48 | 49 | - '.github/workflows/check_labels.yml' |
49 | 50 | - '.github/workflows/cpp_extra.yml' |
| 51 | + - '.github/workflows/cpp_windows.yml' |
50 | 52 | - '.github/workflows/report_ci.yml' |
51 | 53 | - 'ci/conda_env_*' |
52 | 54 | - 'ci/docker/**' |
@@ -75,7 +77,9 @@ concurrency: |
75 | 77 | cancel-in-progress: true |
76 | 78 |
|
77 | 79 | permissions: |
| 80 | + actions: read |
78 | 81 | contents: read |
| 82 | + pull-requests: read |
79 | 83 |
|
80 | 84 | jobs: |
81 | 85 | check-labels: |
@@ -126,7 +130,7 @@ jobs: |
126 | 130 | fetch-depth: 0 |
127 | 131 | submodules: recursive |
128 | 132 | - name: Cache Docker Volumes |
129 | | - uses: actions/cache@v4 |
| 133 | + uses: actions/cache@v5 |
130 | 134 | with: |
131 | 135 | path: .docker |
132 | 136 | key: extra-${{ matrix.image }}-${{ hashFiles('cpp/**') }} |
@@ -211,7 +215,7 @@ jobs: |
211 | 215 | run: | |
212 | 216 | ci/scripts/util_free_space.sh |
213 | 217 | - name: Cache Docker Volumes |
214 | | - uses: actions/cache@v4 |
| 218 | + uses: actions/cache@v5 |
215 | 219 | with: |
216 | 220 | path: .docker |
217 | 221 | key: jni-${{ matrix.platform.runs-on }}-${{ hashFiles('cpp/**') }} |
@@ -283,7 +287,7 @@ jobs: |
283 | 287 | run: | |
284 | 288 | echo "CCACHE_DIR=${PWD}/ccache" >> ${GITHUB_ENV} |
285 | 289 | - name: Cache ccache |
286 | | - uses: actions/cache@v4 |
| 290 | + uses: actions/cache@v5 |
287 | 291 | with: |
288 | 292 | path: ccache |
289 | 293 | key: jni-macos-${{ hashFiles('cpp/**') }} |
@@ -330,12 +334,137 @@ jobs: |
330 | 334 | cd cpp/examples/minimal_build |
331 | 335 | ../minimal_build.build/arrow-example |
332 | 336 |
|
| 337 | + odbc: |
| 338 | + needs: check-labels |
| 339 | + name: ODBC |
| 340 | + runs-on: windows-2022 |
| 341 | + if: >- |
| 342 | + needs.check-labels.outputs.force == 'true' || |
| 343 | + contains(fromJSON(needs.check-labels.outputs.ci-extra-labels || '[]'), 'CI: Extra') || |
| 344 | + contains(fromJSON(needs.check-labels.outputs.ci-extra-labels || '[]'), 'CI: Extra: C++') |
| 345 | + timeout-minutes: 240 |
| 346 | + env: |
| 347 | + ARROW_BUILD_SHARED: ON |
| 348 | + ARROW_BUILD_STATIC: OFF |
| 349 | + ARROW_BUILD_TESTS: ON |
| 350 | + ARROW_BUILD_TYPE: release |
| 351 | + ARROW_DEPENDENCY_SOURCE: VCPKG |
| 352 | + ARROW_FLIGHT_SQL_ODBC: ON |
| 353 | + ARROW_FLIGHT_SQL_ODBC_INSTALLER: ON |
| 354 | + ARROW_SIMD_LEVEL: AVX2 |
| 355 | + CMAKE_GENERATOR: Ninja |
| 356 | + CMAKE_INSTALL_PREFIX: /usr |
| 357 | + VCPKG_BINARY_SOURCES: 'clear;nuget,GitHub,readwrite' |
| 358 | + VCPKG_DEFAULT_TRIPLET: x64-windows |
| 359 | + steps: |
| 360 | + - name: Disable Crash Dialogs |
| 361 | + run: | |
| 362 | + reg add ` |
| 363 | + "HKCU\SOFTWARE\Microsoft\Windows\Windows Error Reporting" ` |
| 364 | + /v DontShowUI ` |
| 365 | + /t REG_DWORD ` |
| 366 | + /d 1 ` |
| 367 | + /f |
| 368 | + - name: Checkout Arrow |
| 369 | + uses: actions/checkout@v6 |
| 370 | + with: |
| 371 | + fetch-depth: 0 |
| 372 | + submodules: recursive |
| 373 | + - name: Download Timezone Database |
| 374 | + shell: bash |
| 375 | + run: ci/scripts/download_tz_database.sh |
| 376 | + - name: Install cmake |
| 377 | + shell: bash |
| 378 | + run: | |
| 379 | + ci/scripts/install_cmake.sh 4.1.2 /usr |
| 380 | + - name: Install ccache |
| 381 | + shell: bash |
| 382 | + run: | |
| 383 | + ci/scripts/install_ccache.sh 4.12.1 /usr |
| 384 | + - name: Setup ccache |
| 385 | + shell: bash |
| 386 | + run: | |
| 387 | + ci/scripts/ccache_setup.sh |
| 388 | + - name: ccache info |
| 389 | + id: ccache-info |
| 390 | + shell: bash |
| 391 | + run: | |
| 392 | + echo "cache-dir=$(ccache --get-config cache_dir)" >> $GITHUB_OUTPUT |
| 393 | + - name: Cache ccache |
| 394 | + uses: actions/cache@v5 |
| 395 | + with: |
| 396 | + path: ${{ steps.ccache-info.outputs.cache-dir }} |
| 397 | + key: cpp-odbc-ccache-windows-x64-${{ hashFiles('cpp/**') }} |
| 398 | + restore-keys: cpp-odbc-ccache-windows-x64- |
| 399 | + - name: Checkout vcpkg |
| 400 | + uses: actions/checkout@v6 |
| 401 | + with: |
| 402 | + fetch-depth: 0 |
| 403 | + path: vcpkg |
| 404 | + repository: microsoft/vcpkg |
| 405 | + - name: Bootstrap vcpkg |
| 406 | + run: | |
| 407 | + vcpkg\bootstrap-vcpkg.bat |
| 408 | + $VCPKG_ROOT = $(Resolve-Path -LiteralPath "vcpkg").ToString() |
| 409 | + Write-Output ${VCPKG_ROOT} | ` |
| 410 | + Out-File -FilePath ${Env:GITHUB_PATH} -Encoding utf8 -Append |
| 411 | + Write-Output "VCPKG_ROOT=${VCPKG_ROOT}" | ` |
| 412 | + Out-File -FilePath ${Env:GITHUB_ENV} -Encoding utf8 -Append |
| 413 | + - name: Setup NuGet credentials for vcpkg caching |
| 414 | + shell: bash |
| 415 | + run: | |
| 416 | + $(vcpkg fetch nuget | tail -n 1) \ |
| 417 | + sources add \ |
| 418 | + -source "https://nuget.pkg.github.com/$GITHUB_REPOSITORY_OWNER/index.json" \ |
| 419 | + -storepasswordincleartext \ |
| 420 | + -name "GitHub" \ |
| 421 | + -username "$GITHUB_REPOSITORY_OWNER" \ |
| 422 | + -password "${{ secrets.GITHUB_TOKEN }}" |
| 423 | + $(vcpkg fetch nuget | tail -n 1) \ |
| 424 | + setapikey "${{ secrets.GITHUB_TOKEN }}" \ |
| 425 | + -source "https://nuget.pkg.github.com/$GITHUB_REPOSITORY_OWNER/index.json" |
| 426 | + - name: Build |
| 427 | + shell: cmd |
| 428 | + run: | |
| 429 | + set VCPKG_ROOT_KEEP=%VCPKG_ROOT% |
| 430 | + call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64 |
| 431 | + set VCPKG_ROOT=%VCPKG_ROOT_KEEP% |
| 432 | + bash -c "ci/scripts/cpp_build.sh $(pwd) $(pwd)/build" |
| 433 | + - name: Register Flight SQL ODBC Driver |
| 434 | + shell: cmd |
| 435 | + run: | |
| 436 | + call "cpp\src\arrow\flight\sql\odbc\tests\install_odbc.cmd" ${{ github.workspace }}\build\cpp\%ARROW_BUILD_TYPE%\arrow_flight_sql_odbc.dll |
| 437 | + # GH-48270 TODO: Resolve segementation fault during Arrow library unload |
| 438 | + # GH-48269 TODO: Enable Flight & Flight SQL testing in MSVC CI |
| 439 | + # GH-48547 TODO: enable ODBC tests after GH-48270 and GH-48269 are resolved. |
| 440 | + |
| 441 | + - name: Install WiX Toolset |
| 442 | + shell: pwsh |
| 443 | + run: | |
| 444 | + Invoke-WebRequest -Uri https://github.com/wixtoolset/wix/releases/download/v6.0.0/wix-cli-x64.msi -OutFile wix-cli-x64.msi |
| 445 | + Start-Process -FilePath wix-cli-x64.msi -ArgumentList '/quiet', 'Include_freethreaded=1' -Wait |
| 446 | + echo "C:\Program Files\WiX Toolset v6.0\bin\" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append |
| 447 | + - name: Build MSI ODBC installer |
| 448 | + shell: pwsh |
| 449 | + run: | |
| 450 | + # Verify WiX version |
| 451 | + wix --version |
| 452 | + cd build/cpp |
| 453 | + cpack |
| 454 | + - name: Upload the artifacts to the job |
| 455 | + uses: actions/upload-artifact@v6 |
| 456 | + with: |
| 457 | + name: flight-sql-odbc-msi-installer |
| 458 | + path: build/cpp/Apache Arrow Flight SQL ODBC-*-win64.msi |
| 459 | + if-no-files-found: error |
| 460 | + |
333 | 461 | report-extra-cpp: |
334 | 462 | if: github.event_name == 'schedule' && always() |
335 | 463 | needs: |
336 | 464 | - docker |
337 | 465 | - jni-linux |
338 | 466 | - jni-macos |
339 | 467 | - msvc-arm64 |
| 468 | + - odbc |
340 | 469 | uses: ./.github/workflows/report_ci.yml |
341 | 470 | secrets: inherit |
0 commit comments