Skip to content

Commit

Permalink
Use vcpkg version pinning(ish)
Browse files Browse the repository at this point in the history
  • Loading branch information
edenhill committed Aug 12, 2021
1 parent f57074c commit d2bc749
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ install:
# Update vcpkg (is outdated on the VS 2015 image)
- cmd: |
cd "C:\Tools\vcpkg"
git pull
git pull -q
.\bootstrap-vcpkg.bat
cd %appveyor_build_folder%
cache:
Expand All @@ -27,7 +27,7 @@ nuget:
project_feed: true
disable_publish_on_pr: true
before_build:
- cmd: vcpkg install zstd zlib openssl --triplet %arch%-windows
- cmd: vcpkg --feature-flags=versions install --triplet %arch%-windows
build:
project: win32/librdkafka.sln
publish_nuget: true
Expand Down
3 changes: 2 additions & 1 deletion packaging/RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,10 @@ Release candidates start at 200, thus 0xAABBCCc9 is RC1, 0xAABBCCca is RC2, etc.
Change the `RD_KAFKA_VERSION` defines in both `src/rdkafka.h` and
`src-cpp/rdkafkacpp.h` to the version to build, such as 0x000b01c9
for v0.11.1-RC1, or 0x000b01ff for the final v0.11.1 release.
Update the librdkafka version in `vcpkg.json`.

# Update defines
$ $EDITOR src/rdkafka.h src-cpp/rdkafkacpp.h
$ $EDITOR src/rdkafka.h src-cpp/rdkafkacpp.h vcpkg.json

# Reconfigure and build
$ ./configure
Expand Down
19 changes: 19 additions & 0 deletions vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "librdkafka",
"version": "1.8.0",
"dependencies": [
{
"name": "zstd",
"version>=": "1.4.9"
},
{
"name": "zlib",
"version>=": "1.2.11"
},
{
"name": "openssl",
"version>=": "1.1.1k"
}
],
"builtin-baseline": "cf03dac5c25dd5a8d207d0b7d546f24424898418"
}

0 comments on commit d2bc749

Please sign in to comment.