mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-15 22:36:46 +00:00
* switch provisioners to install boost from github releases * minor fixes * separate boosts by toolset versions * minor fix * switch provisioners for win16 * fix bugs * fix validation * minor fix * fix validation * fix validation * fix validation * minor fix * change toolset version for win16 * minor fixes * minor fix * fix validation * update links to toolset-json * add arch to BoostInstallationDir
20 lines
798 B
PowerShell
20 lines
798 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-ToolsetContent | Select-Object -ExpandProperty toolcache | Where-Object { $_.Name -eq "Boost"}).Versions
|
|
|
|
foreach($BoostVersion in $BoostVersions)
|
|
{
|
|
$BoostInstallationDir = Join-Path -Path $BoostDirectory -ChildPath "$BoostVersion\X86_64"
|
|
|
|
$EnvBoostPath = "BOOST_ROOT_{0}" -f ($BoostVersion.Replace('.', '_'))
|
|
setx $EnvBoostPath $BoostInstallationDir /M | Out-Null
|
|
}
|