fix: installing vcpkg in custom image (#84)
* fix: installing vcpkg in custom image * remove lines causing lint errors
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
## File: vcpkg.sh
|
## File: vcpkg.sh
|
||||||
## Desc: Installs vcpkg
|
## Desc: Installs vcpkg
|
||||||
################################################################################
|
################################################################################
|
||||||
# source: https://github.com/actions/virtual-environments/blob/206a8183190e81d3266084457e619553551c1252/images/linux/scripts/installers/vcpkg.sh
|
# source: https://github.com/actions/runner-images/blob/5a94a87d676435f6dc049db865e220bc91ec8a0b/images/linux/scripts/installers/vcpkg.sh
|
||||||
|
|
||||||
# Set env variable for vcpkg
|
# Set env variable for vcpkg
|
||||||
VCPKG_INSTALLATION_ROOT=/usr/local/share/vcpkg
|
VCPKG_INSTALLATION_ROOT=/usr/local/share/vcpkg
|
||||||
@@ -13,6 +13,14 @@ echo "VCPKG_INSTALLATION_ROOT=${VCPKG_INSTALLATION_ROOT}" | tee -a /etc/environm
|
|||||||
git clone https://github.com/Microsoft/vcpkg $VCPKG_INSTALLATION_ROOT
|
git clone https://github.com/Microsoft/vcpkg $VCPKG_INSTALLATION_ROOT
|
||||||
|
|
||||||
$VCPKG_INSTALLATION_ROOT/bootstrap-vcpkg.sh
|
$VCPKG_INSTALLATION_ROOT/bootstrap-vcpkg.sh
|
||||||
|
|
||||||
|
# workaround https://github.com/microsoft/vcpkg/issues/27786
|
||||||
|
|
||||||
|
mkdir -p /root/.vcpkg/
|
||||||
|
touch /root/.vcpkg/vcpkg.path.txt
|
||||||
|
|
||||||
$VCPKG_INSTALLATION_ROOT/vcpkg integrate install
|
$VCPKG_INSTALLATION_ROOT/vcpkg integrate install
|
||||||
chmod 0777 -R $VCPKG_INSTALLATION_ROOT
|
chmod 0777 -R $VCPKG_INSTALLATION_ROOT
|
||||||
ln -sf $VCPKG_INSTALLATION_ROOT/vcpkg /usr/local/bin
|
ln -sf $VCPKG_INSTALLATION_ROOT/vcpkg /usr/local/bin
|
||||||
|
|
||||||
|
rm -rf /root/.vcpkg
|
||||||
|
|||||||
Reference in New Issue
Block a user