From fab3d006ca144172f728197ac6212bfe07412568 Mon Sep 17 00:00:00 2001 From: KanchanShu Date: Mon, 7 Sep 2026 13:44:27 +0530 Subject: [PATCH] fix: Update driver version in windows CI --- .github/workflows/windows-cmake.yml | 3 ++- ci/gha/builds/windows-cmake-integration.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/windows-cmake.yml b/.github/workflows/windows-cmake.yml index 5e69dd4e83..e2afe9f55a 100644 --- a/.github/workflows/windows-cmake.yml +++ b/.github/workflows/windows-cmake.yml @@ -31,7 +31,6 @@ jobs: env: DRIVER_ARCH: ${{ matrix.arch }} BUILD_SHARD: ${{ matrix.shard }} - ODBC_GOOGLE_DRIVER_VERSION: 99.99.99 VCPKG_TRIPLET: ${{ matrix.arch }}-windows steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 @@ -60,6 +59,8 @@ jobs: run: | echo "vcpkg-version=$(cat ci/etc/vcpkg-version.txt)" >> "${GITHUB_OUTPUT}" echo "VCPKG_BINARY_SOURCES=clear;files,${{ runner.temp }}/vcpkg-cache,readwrite" >> "${GITHUB_ENV}" + VERSION=$(grep -m1 'set(PROJECT_VERSION' CMakeLists.txt | sed 's/.*"\(.*\)".*/\1/') + echo "ODBC_GOOGLE_DRIVER_VERSION=${VERSION}" >> "${GITHUB_ENV}" - name: Ensure .NET Framework 4.5 or higher is installed diff --git a/ci/gha/builds/windows-cmake-integration.sh b/ci/gha/builds/windows-cmake-integration.sh index c6409e1cdc..fc74aac89c 100755 --- a/ci/gha/builds/windows-cmake-integration.sh +++ b/ci/gha/builds/windows-cmake-integration.sh @@ -77,7 +77,8 @@ TIMEFORMAT="==> 🕑 CMake configuration done in %R seconds" time { # Always run //google/cloud:status_test in case the list of targets has # no unit tests. - io::run cmake "${args[@]}" "${vcpkg_args[@]}" -DCMAKE_CXX_STANDARD=17 + io::run cmake "${args[@]}" "${vcpkg_args[@]}" -DCMAKE_CXX_STANDARD=17 \ + -DPROJECT_VERSION="${ODBC_GOOGLE_DRIVER_VERSION:-1.0.0}" } if command -v sccache >/dev/null 2>&1; then