Obuka
Vođeno učenje
Define and implement continuous integration - Training
Create automated pipelines that continuously build, test, and deploy your applications and prepare for Exam AZ-400: Designing and Implementing Microsoft DevOps Solutions.
Ovaj preglednik više nije podržan.
Prijeđite na Microsoft Edge, gdje vas čekaju najnovije značajke, sigurnosna ažuriranja i tehnička podrška.
This article describes how to effectively use vcpkg in a continuous integration (CI) environment. Either because you are using vcpkg to manage your project's dependencies or you have a custom vcpkg registry and want to add CI tests for your ports.
The steps to acquire vcpkg in a CI environment are the same as those to acquire vcpkg in your development environment. You need to acquire a clone of the vcpkg repository at https://github.com/microsoft/vcpkg and you need to run the bootstrap script to get a vcpkg executable.
Regardless of the acquisition method you follow, it is highly recommended that your vcpkg instance has a complete Git history. The versioning feature of vcpkg relies on having a complete commit history to retrieve specific port versions.
An easy way to acquire vcpkg in your CI environment is to declare the vcpkg repository as a submodule of your repository.
git submodule init
./vcpkg/vcpkg-bootstrap.sh
A secondary method is to run a Git command as part of your CI scripts to clone an instance of the vcpkg repository.
git clone http://github.com/Microsoft/vcpkg
./vcpkg/vcpkg-bootstrap.sh
Depending on the vendor you use to run your CI environment, there may be readily available third-party scripts that can acquire vcpkg in a single step. The vcpkg team does not maintain any of these third-party scripts and you should exercise proper caution if you intend to use any of them.
The following methods are not recommended for CI environments.
iex (iwr -useb https://aka.ms/vcpkg-init.ps1)
or . <(curl https://aka.ms/vcpkg-init.sh -L)
.
This is a vcpkg distribution method that enables the "artifacts" experimental
feature and is not recommended for most users.It is highly recommended that you enable a binary cache to avoid rebuilding your project's dependencies on each CI run.
To learn more about binary caching read these articles:
Setting up an asset cache will make your CI environment more resilient to errors caused by external services.
To learn more about asset caching read these articles:
These articles show you examples of how everything works together:
Povratne informacije o proizvodu vcpkg
vcpkg je projekt otvorenog koda. Odaberite vezu za slanje povratnih informacija:
Obuka
Vođeno učenje
Define and implement continuous integration - Training
Create automated pipelines that continuously build, test, and deploy your applications and prepare for Exam AZ-400: Designing and Implementing Microsoft DevOps Solutions.