mirror of
https://github.com/actions/runner-images.git
synced 2025-12-25 19:11:28 +08:00
[Windows] Fix mingw related lines in software report (#8389)
This commit is contained in:
committed by
GitHub
parent
5e9e8cd16d
commit
62e9da75e7
@@ -107,8 +107,20 @@ function Get-KindVersion {
|
||||
return $kindVersion
|
||||
}
|
||||
|
||||
function Get-MinGWVersion {
|
||||
(gcc --version | Select-String -Pattern "MinGW-W64") -match "(?<version>\d+\.\d+\.\d+)" | Out-Null
|
||||
function Get-GCCVersion {
|
||||
(gcc --version | Select-String -Pattern "gcc.exe") -match "(?<version>\d+\.\d+\.\d+)" | Out-Null
|
||||
$mingwVersion = $Matches.Version
|
||||
return $mingwVersion
|
||||
}
|
||||
|
||||
function Get-GDBVersion {
|
||||
(gdb --version | Select-String -Pattern "GNU gdb") -match "(?<version>\d+\.\d+)" | Out-Null
|
||||
$mingwVersion = $Matches.Version
|
||||
return $mingwVersion
|
||||
}
|
||||
|
||||
function Get-GNUBinutilsVersion {
|
||||
(ld --version | Select-String -Pattern "GNU Binutils") -match "(?<version>\d+\.\d+)" | Out-Null
|
||||
$mingwVersion = $Matches.Version
|
||||
return $mingwVersion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user