From 148eaf9c80af082b519d24f82f7c965cb5a320e9 Mon Sep 17 00:00:00 2001 From: Erik Bershel <110455084+erik-bershel@users.noreply.github.com> Date: Fri, 9 Sep 2022 11:04:46 +0200 Subject: [PATCH] Add VCPKG_ROOT variable (#6195) --- images/macos/provision/core/vcpkg.sh | 17 +++++++++-------- .../software-report/SoftwareReport.Common.psm1 | 4 ++++ 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/images/macos/provision/core/vcpkg.sh b/images/macos/provision/core/vcpkg.sh index a1ac7c254969..70e3371fa721 100644 --- a/images/macos/provision/core/vcpkg.sh +++ b/images/macos/provision/core/vcpkg.sh @@ -1,15 +1,16 @@ #!/bin/bash -e -o pipefail source ~/utils/utils.sh -# Set env variable for vcpkg -VCPKG_INSTALLATION_ROOT=/usr/local/share/vcpkg -echo "export VCPKG_INSTALLATION_ROOT=${VCPKG_INSTALLATION_ROOT}" | tee -a ~/.bashrc +# Set env variables for vcpkg +VCPKG_ROOT=/usr/local/share/vcpkg +echo "export VCPKG_INSTALLATION_ROOT=${VCPKG_ROOT}" | tee -a ~/.bashrc +echo "export VCPKG_ROOT=${VCPKG_ROOT}" | tee -a ~/.bashrc # Install vcpkg -git clone https://github.com/Microsoft/vcpkg $VCPKG_INSTALLATION_ROOT -$VCPKG_INSTALLATION_ROOT/bootstrap-vcpkg.sh -$VCPKG_INSTALLATION_ROOT/vcpkg integrate install -chmod -R 0777 $VCPKG_INSTALLATION_ROOT -ln -sf $VCPKG_INSTALLATION_ROOT/vcpkg /usr/local/bin +git clone https://github.com/Microsoft/vcpkg $VCPKG_ROOT +$VCPKG_ROOT/bootstrap-vcpkg.sh +$VCPKG_ROOT/vcpkg integrate install +chmod -R 0777 $VCPKG_ROOT +ln -sf $VCPKG_ROOT/vcpkg /usr/local/bin invoke_tests "Common" "vcpkg" diff --git a/images/macos/software-report/SoftwareReport.Common.psm1 b/images/macos/software-report/SoftwareReport.Common.psm1 index 22c30c9d41a8..2c36fd4dad86 100644 --- a/images/macos/software-report/SoftwareReport.Common.psm1 +++ b/images/macos/software-report/SoftwareReport.Common.psm1 @@ -562,6 +562,10 @@ function Build-PackageManagementEnvironmentTable { @{ "Name" = "VCPKG_INSTALLATION_ROOT" "Value" = $env:VCPKG_INSTALLATION_ROOT + }, + @{ + "Name" = "VCPKG_ROOT" + "Value" = $env:VCPKG_ROOT } ) | ForEach-Object { [PSCustomObject] @{