mirror of
https://github.com/actions/runner-images.git
synced 2026-01-08 11:30:49 +08:00
Another mop up commit to add missing changes from the last mop-up.
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
################################################################################
|
||||
## File: Install-Vcpkg.ps1
|
||||
## Desc: Install vcpkg
|
||||
################################################################################
|
||||
|
||||
Import-Module -Name ImageHelpers -Force
|
||||
|
||||
$Uri = 'https://github.com/Microsoft/vcpkg.git'
|
||||
$InstallDir = 'C:\vcpkg'
|
||||
$VcpkgExecPath = 'vcpkg.exe'
|
||||
|
||||
git clone --depth=1 $Uri $InstallDir -q
|
||||
|
||||
# Build and integrate vcpkg
|
||||
Invoke-Expression "$InstallDir\bootstrap-vcpkg.bat"
|
||||
Invoke-Expression "$InstallDir\$VcpkgExecPath integrate install"
|
||||
|
||||
# Add vcpkg to system environment
|
||||
Add-MachinePathItem $InstallDir
|
||||
$env:Path = Get-MachinePath
|
||||
setx VCPKG_INSTALLATION_ROOT $InstallDir /M
|
||||
################################################################################
|
||||
## File: Install-Vcpkg.ps1
|
||||
## Desc: Install vcpkg
|
||||
################################################################################
|
||||
|
||||
Import-Module -Name ImageHelpers -Force
|
||||
|
||||
$Uri = 'https://github.com/Microsoft/vcpkg.git'
|
||||
$InstallDir = 'C:\vcpkg'
|
||||
$VcpkgExecPath = 'vcpkg.exe'
|
||||
|
||||
git clone --depth=1 $Uri $InstallDir -q
|
||||
|
||||
# Build and integrate vcpkg
|
||||
Invoke-Expression "$InstallDir\bootstrap-vcpkg.bat"
|
||||
Invoke-Expression "$InstallDir\$VcpkgExecPath integrate install"
|
||||
|
||||
# Add vcpkg to system environment
|
||||
Add-MachinePathItem $InstallDir
|
||||
$env:Path = Get-MachinePath
|
||||
setx VCPKG_INSTALLATION_ROOT $InstallDir /M
|
||||
|
||||
Reference in New Issue
Block a user