mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 14:17:22 +00:00
20 lines
654 B
Bash
20 lines
654 B
Bash
#!/bin/bash -e
|
|
################################################################################
|
|
## File: vcpkg.sh
|
|
## Desc: Installs vcpkg
|
|
################################################################################
|
|
|
|
# Set env variables for vcpkg
|
|
VCPKG_ROOT=/usr/local/share/vcpkg
|
|
echo "VCPKG_INSTALLATION_ROOT=${VCPKG_ROOT}" | tee -a /etc/environment
|
|
echo "VCPKG_ROOT=${VCPKG_ROOT}" | tee -a /etc/environment
|
|
|
|
# Install vcpkg
|
|
git clone https://github.com/Microsoft/vcpkg $VCPKG_ROOT
|
|
|
|
$VCPKG_ROOT/bootstrap-vcpkg.sh
|
|
$VCPKG_ROOT/vcpkg integrate install
|
|
chmod 0777 -R $VCPKG_ROOT
|
|
ln -sf $VCPKG_ROOT/vcpkg /usr/local/bin
|
|
|
|
invoke_tests "Tools" "Vcpkg" |