mirror of
https://github.com/actions/runner-images.git
synced 2025-12-10 19:16:48 +00:00
21 lines
746 B
Bash
21 lines
746 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
|
|
|
|
# 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
|
|
|
|
invoke_tests "Common" "vcpkg"
|