setup_windows_ci_environment.ps1 785 B

12345678910111213141516171819202122232425262728293031
  1. # Copyright The OpenTelemetry Authors
  2. # SPDX-License-Identifier: Apache-2.0
  3. $ErrorActionPreference = "Stop"
  4. trap { $host.SetShouldExit(1) }
  5. git submodule update -f "tools/vcpkg"
  6. Push-Location -Path "tools/vcpkg"
  7. $VCPKG_DIR = (Get-Item -Path ".\").FullName
  8. ./bootstrap-vcpkg.bat
  9. ./vcpkg integrate install
  10. # Google Benchmark
  11. ./vcpkg "--vcpkg-root=$VCPKG_DIR" install benchmark:x64-windows
  12. # Google Test
  13. ./vcpkg "--vcpkg-root=$VCPKG_DIR" install gtest:x64-windows
  14. # nlohmann-json
  15. ./vcpkg "--vcpkg-root=$VCPKG_DIR" install nlohmann-json:x64-windows
  16. # grpc
  17. ./vcpkg "--vcpkg-root=$VCPKG_DIR" install grpc:x64-windows
  18. # curl
  19. ./vcpkg "--vcpkg-root=$VCPKG_DIR" install curl:x64-windows
  20. # prometheus-cpp
  21. ./vcpkg "--vcpkg-root=$VCPKG_DIR" install prometheus-cpp:x64-windows
  22. Pop-Location