Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/windows-cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion ci/gha/builds/windows-cmake-integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading