mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 05:07:02 +00:00
[macOS] Add MSBuild to docs (#3214)
This commit is contained in:
@@ -156,6 +156,14 @@ function Get-PHPVersion {
|
|||||||
return $PHPVersion
|
return $PHPVersion
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function Get-MSBuildVersion {
|
||||||
|
$msbuildVersion = msbuild -version | Select-Object -Last 1
|
||||||
|
$result = Select-String -Path (Get-Command msbuild).Source -Pattern "msbuild"
|
||||||
|
$result -match "(?<path>\/\S*\.dll)" | Out-Null
|
||||||
|
$msbuildPath = $Matches.path
|
||||||
|
return "MSBuild $msbuildVersion (from $msbuildPath)"
|
||||||
|
}
|
||||||
|
|
||||||
function Get-NodeVersion {
|
function Get-NodeVersion {
|
||||||
$nodeVersion = Run-Command "node --version"
|
$nodeVersion = Run-Command "node --version"
|
||||||
return "Node.js $nodeVersion"
|
return "Node.js $nodeVersion"
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ $markdown += New-MDHeader "Installed Software" -Level 2
|
|||||||
$markdown += New-MDHeader "Language and Runtime" -Level 3
|
$markdown += New-MDHeader "Language and Runtime" -Level 3
|
||||||
$languageAndRuntimeList = @(
|
$languageAndRuntimeList = @(
|
||||||
(Get-BashVersion),
|
(Get-BashVersion),
|
||||||
|
(Get-MSBuildVersion),
|
||||||
(Get-NodeVersion),
|
(Get-NodeVersion),
|
||||||
(Get-NVMVersion),
|
(Get-NVMVersion),
|
||||||
(Get-NVMNodeVersionList),
|
(Get-NVMNodeVersionList),
|
||||||
|
|||||||
@@ -75,6 +75,10 @@ Describe "Mono" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
It "MSBuild is available" {
|
||||||
|
"msbuild -version" | Should -ReturnZeroExitCode
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Describe "Xamarin.iOS" {
|
Describe "Xamarin.iOS" {
|
||||||
|
|||||||
Reference in New Issue
Block a user