mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
remove boost binaries from path
This commit is contained in:
@@ -30,8 +30,7 @@
|
|||||||
"image_os": "win16",
|
"image_os": "win16",
|
||||||
"github_feed_token": "{{env `GITHUB_FEED_TOKEN`}}",
|
"github_feed_token": "{{env `GITHUB_FEED_TOKEN`}}",
|
||||||
"go_versions": "1.9, 1.10, 1.11, 1.12, 1.13, 1.14",
|
"go_versions": "1.9, 1.10, 1.11, 1.12, 1.13, 1.14",
|
||||||
"go_default": "1.14",
|
"go_default": "1.14"
|
||||||
"boost_default": "1.69.0"
|
|
||||||
},
|
},
|
||||||
"sensitive-variables": ["install_password", "ssh_password", "client_secret", "github_feed_token"],
|
"sensitive-variables": ["install_password", "ssh_password", "client_secret", "github_feed_token"],
|
||||||
"builders": [
|
"builders": [
|
||||||
@@ -517,8 +516,7 @@
|
|||||||
{
|
{
|
||||||
"type": "powershell",
|
"type": "powershell",
|
||||||
"environment_vars": [
|
"environment_vars": [
|
||||||
"ROOT_FOLDER={{user `root_folder`}}",
|
"ROOT_FOLDER={{user `root_folder`}}"
|
||||||
"BOOST_DEFAULT={{user `boost_default`}}"
|
|
||||||
],
|
],
|
||||||
"scripts":[
|
"scripts":[
|
||||||
"{{ template_dir }}/scripts/Installers/Install-Boost.ps1"
|
"{{ template_dir }}/scripts/Installers/Install-Boost.ps1"
|
||||||
@@ -652,8 +650,7 @@
|
|||||||
{
|
{
|
||||||
"type": "powershell",
|
"type": "powershell",
|
||||||
"environment_vars": [
|
"environment_vars": [
|
||||||
"ROOT_FOLDER={{user `root_folder`}}",
|
"ROOT_FOLDER={{user `root_folder`}}"
|
||||||
"BOOST_DEFAULT={{user `boost_default`}}"
|
|
||||||
],
|
],
|
||||||
"scripts":[
|
"scripts":[
|
||||||
"{{ template_dir }}/scripts/Installers/Validate-Boost.ps1"
|
"{{ template_dir }}/scripts/Installers/Validate-Boost.ps1"
|
||||||
|
|||||||
@@ -30,8 +30,7 @@
|
|||||||
"image_os": "win19",
|
"image_os": "win19",
|
||||||
"github_feed_token": "{{env `GITHUB_FEED_TOKEN`}}",
|
"github_feed_token": "{{env `GITHUB_FEED_TOKEN`}}",
|
||||||
"go_versions": "1.9, 1.10, 1.11, 1.12, 1.13, 1.14",
|
"go_versions": "1.9, 1.10, 1.11, 1.12, 1.13, 1.14",
|
||||||
"go_default": "1.14",
|
"go_default": "1.14"
|
||||||
"boost_default": "1.72.0"
|
|
||||||
},
|
},
|
||||||
"sensitive-variables": ["install_password", "ssh_password", "client_secret", "github_feed_token"],
|
"sensitive-variables": ["install_password", "ssh_password", "client_secret", "github_feed_token"],
|
||||||
"builders": [
|
"builders": [
|
||||||
@@ -498,8 +497,7 @@
|
|||||||
{
|
{
|
||||||
"type": "powershell",
|
"type": "powershell",
|
||||||
"environment_vars": [
|
"environment_vars": [
|
||||||
"ROOT_FOLDER={{user `root_folder`}}",
|
"ROOT_FOLDER={{user `root_folder`}}"
|
||||||
"BOOST_DEFAULT={{user `boost_default`}}"
|
|
||||||
],
|
],
|
||||||
"scripts":[
|
"scripts":[
|
||||||
"{{ template_dir }}/scripts/Installers/Install-Boost.ps1"
|
"{{ template_dir }}/scripts/Installers/Install-Boost.ps1"
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ Import-Module -Name ImageHelpers
|
|||||||
$SoftwareName = "Boost"
|
$SoftwareName = "Boost"
|
||||||
$BoostDirectory = Join-Path -Path $env:AGENT_TOOLSDIRECTORY -ChildPath $SoftwareName
|
$BoostDirectory = Join-Path -Path $env:AGENT_TOOLSDIRECTORY -ChildPath $SoftwareName
|
||||||
$BoostVersions = (Get-ToolsByName -SoftwareName $SoftwareName).Versions | Foreach-Object {"{0}.0" -f $_}
|
$BoostVersions = (Get-ToolsByName -SoftwareName $SoftwareName).Versions | Foreach-Object {"{0}.0" -f $_}
|
||||||
$BoostDefault = $env:BOOST_DEFAULT
|
|
||||||
|
|
||||||
foreach($BoostVersion in $BoostVersions)
|
foreach($BoostVersion in $BoostVersions)
|
||||||
{
|
{
|
||||||
@@ -17,11 +16,4 @@ foreach($BoostVersion in $BoostVersions)
|
|||||||
|
|
||||||
$EnvBoostPath = "BOOST_ROOT_{0}" -f ($BoostVersion.Replace('.', '_'))
|
$EnvBoostPath = "BOOST_ROOT_{0}" -f ($BoostVersion.Replace('.', '_'))
|
||||||
setx $EnvBoostPath $BoostInstallationDir /M | Out-Null
|
setx $EnvBoostPath $BoostInstallationDir /M | Out-Null
|
||||||
|
|
||||||
if ($BoostVersion -eq $BoostDefault)
|
|
||||||
{
|
|
||||||
Write-Host "Adding Boost $BoostVersion to the path..."
|
|
||||||
# Add the Boost binaries to the path
|
|
||||||
Add-MachinePathItem $BoostInstallationDir | Out-Null
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ function Validate-BoostVersion
|
|||||||
if (Test-Path "$ReleasePath\b2.exe")
|
if (Test-Path "$ReleasePath\b2.exe")
|
||||||
{
|
{
|
||||||
Write-Host "Boost.Build $BoostRelease is successfully installed"
|
Write-Host "Boost.Build $BoostRelease is successfully installed"
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -26,17 +25,6 @@ function Validate-BoostVersion
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# Verify that Boost is on the path
|
|
||||||
if (Get-Command -Name 'b2')
|
|
||||||
{
|
|
||||||
Write-Host "Boost is on the path"
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
Write-Host "Boost is not on the path"
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|
||||||
# Adding description of the software to Markdown
|
# Adding description of the software to Markdown
|
||||||
$tmplMark = @"
|
$tmplMark = @"
|
||||||
#### {0} [{2}]
|
#### {0} [{2}]
|
||||||
@@ -46,14 +34,6 @@ _Environment:_
|
|||||||
|
|
||||||
"@
|
"@
|
||||||
|
|
||||||
$tmplMarkRoot = @"
|
|
||||||
#### {0} [{2}]
|
|
||||||
|
|
||||||
_Environment:_
|
|
||||||
* PATH: contains the location of Boost version {0}
|
|
||||||
* {1}: root directory of the Boost version {0} installation
|
|
||||||
"@
|
|
||||||
|
|
||||||
$Description = New-Object System.Text.StringBuilder
|
$Description = New-Object System.Text.StringBuilder
|
||||||
$SoftwareName = 'Boost'
|
$SoftwareName = 'Boost'
|
||||||
$BoostRootDirectory = Join-Path -Path $env:AGENT_TOOLSDIRECTORY -ChildPath $SoftwareName
|
$BoostRootDirectory = Join-Path -Path $env:AGENT_TOOLSDIRECTORY -ChildPath $SoftwareName
|
||||||
@@ -68,14 +48,7 @@ foreach ($BoostTool in $BoostTools)
|
|||||||
Validate-BoostVersion -BoostRootPath $BoostRootDirectory -BoostRelease $BoostVersion
|
Validate-BoostVersion -BoostRootPath $BoostRootDirectory -BoostRelease $BoostVersion
|
||||||
$BoostVersionTag = "BOOST_ROOT_{0}" -f $BoostVersion.Replace('.', '_')
|
$BoostVersionTag = "BOOST_ROOT_{0}" -f $BoostVersion.Replace('.', '_')
|
||||||
|
|
||||||
if($BoostVersion -eq $env:BOOST_DEFAULT)
|
$null = $Description.AppendLine(($tmplMark -f $BoostVersion, $BoostVersionTag, $BoostToolsetName))
|
||||||
{
|
|
||||||
$null = $Description.AppendLine(($tmplMarkRoot -f $BoostVersion, $BoostVersionTag, $BoostToolsetName))
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$null = $Description.AppendLine(($tmplMark -f $BoostVersion, $BoostVersionTag, $BoostToolsetName))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user