Skip to content

Update vcpkg to the latest version

What does this MR do?

This updates vcpkg to the latest version as the version currently use has a bug that the binary cache isn't working. Uploaded binaries to the gitlab storage are not found. This has been fixed in newer versions.

https://github.com/microsoft/vcpkg/issues/18127

Why was this MR needed?

It dramatically reduces build time. For example in libssh we require OpenSSL. So we need to build OpenSSL first which takes 30 minutes. With binary caching you compile it once and then put it in the gitlab cache. The next time a runner will get the binary cache and if it finds a compiled OpenSSL version it will just use that instead of compiling it again.

See also: https://vcpkg.io/en/docs/users/binarycaching.html

What's the best way to test this MR?

Turn on binary caching, see:

https://gitlab.com/libssh/libssh-mirror/-/blob/master/.gitlab-ci.yml#L459 https://gitlab.com/libssh/libssh-mirror/-/blob/master/.gitlab-ci.yml#L481

What are the relevant issue numbers?

#41 (closed)

Edited by Andreas Schneider

Merge request reports