mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
20 lines
767 B
PowerShell
20 lines
767 B
PowerShell
################################################################################
|
|
## File: Set-BoostRoot.ps1
|
|
## Team: CI-Build
|
|
## Desc: Install boost using tool cache
|
|
################################################################################
|
|
|
|
Import-Module -Name ImageHelpers
|
|
|
|
$SoftwareName = "Boost"
|
|
$BoostDirectory = Join-Path -Path $env:AGENT_TOOLSDIRECTORY -ChildPath $SoftwareName
|
|
$BoostVersions = (Get-ToolsByName -SoftwareName $SoftwareName).Versions | Foreach-Object {"{0}.0" -f $_}
|
|
|
|
foreach($BoostVersion in $BoostVersions)
|
|
{
|
|
$BoostInstallationDir = Join-Path -Path $BoostDirectory -ChildPath $BoostVersion
|
|
|
|
$EnvBoostPath = "BOOST_ROOT_{0}" -f ($BoostVersion.Replace('.', '_'))
|
|
setx $EnvBoostPath $BoostInstallationDir /M | Out-Null
|
|
}
|