Files
runner-images-sangeeth/images/macos/scripts/build/install-vcpkg.sh
archita105 cf96585d26 [macOS] VCpkg update for macOS-14 and macOS-15 images (#11738)
* Vcpkg Update

* vcpkg update

* VCPKG update

* Updated permission issue

* Updated path for arm

* Installation path change

* Installation path update

* Installation Path change

* VCpkg update in software report

* permission changed

* permission updated

* permission

* Added sudo in chmod

* Added sudo for Symlink

* Removed sudo for Symlink
2025-04-11 16:40:06 +05:30

28 lines
910 B
Bash

#!/bin/bash -e -o pipefail
################################################################################
## File: install-vcpkg.sh
## Desc: Install vcpkg
################################################################################
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
# workaround https://github.com/microsoft/vcpkg/issues/27786
mkdir -p /Users/runner/.vcpkg
touch /Users/runner/.vcpkg/vcpkg.path.txt
# Install vcpkg
sudo git clone https://github.com/Microsoft/vcpkg $VCPKG_INSTALLATION_ROOT
sudo $VCPKG_INSTALLATION_ROOT/bootstrap-vcpkg.sh
$VCPKG_INSTALLATION_ROOT/vcpkg integrate install
sudo chmod -R 0777 $VCPKG_INSTALLATION_ROOT
ln -sf $VCPKG_INSTALLATION_ROOT/vcpkg /usr/local/bin
rm -rf /Users/runner/.vcpkg
invoke_tests "Common" "vcpkg"