Skip to content

Commit

Permalink
get latest packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle-Neale committed Jan 9, 2025
1 parent e629313 commit 2acb891
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .builders/images/windows-x86_64/build_script.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,25 @@ Remove-Item "librdkafka-${kafka_version}.tar.gz"
# Based on this job from upstream:
# https://github.com/confluentinc/librdkafka/blob/cb8c19c43011b66c4b08b25e5150455a247e1ff3/.semaphore/semaphore.yml#L265
# Install vcpkg
Set-Location "C:\"
$triplet = "x64-windows"
$vcpkg_dir = "C:\vcpkg"
$librdkafka_dir = "C:\librdkafka\librdkafka-${kafka_version}"
$desired_tag = "2024.12.16"

# Clone and configure vcpkg
if (-Not (Test-Path -Path "$vcpkg_dir\.git")) {
git clone https://github.com/Microsoft/vcpkg.git $vcpkg_dir
}

Set-Location $vcpkg_dir
git checkout $desired_tag

Write-Host "Bootstrapping vcpkg..."
.\bootstrap-vcpkg.bat

& "${librdkafka_dir}\win32\setup-vcpkg.ps1"
# Get deps
Set-Location "$librdkafka_dir"
# Patch the the vcpkg manifest to to override the OpenSSL version
# Patch the the vcpkg manifest to to override the OpenSSL version and CURL version
python C:\update_librdkafka_manifest.py vcpkg.json --set-version openssl:${Env:OPENSSL_VERSION} --set-version curl:${Env:CURL_VERSION}

C:\vcpkg\vcpkg integrate install
Expand Down

0 comments on commit 2acb891

Please sign in to comment.