mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
[Ubuntu] fix VersionPattern for Clang v15 (#8575)
Co-authored-by: Alexey Ayupov <“alexey.ayupov@akvelon.com”>
This commit is contained in:
@@ -30,7 +30,7 @@ function Get-ClangToolVersions {
|
|||||||
[Parameter(Mandatory = $true)]
|
[Parameter(Mandatory = $true)]
|
||||||
[string] $ToolName,
|
[string] $ToolName,
|
||||||
[string] $VersionLineMatcher = "${ToolName} version",
|
[string] $VersionLineMatcher = "${ToolName} version",
|
||||||
[string] $VersionPattern = "\d+\.\d+\.\d+)-"
|
[string] $VersionPattern = "\d+\.\d+\.\d+)"
|
||||||
)
|
)
|
||||||
|
|
||||||
$result = Get-CommandResult "apt list --installed" -Multiline
|
$result = Get-CommandResult "apt list --installed" -Multiline
|
||||||
@@ -355,4 +355,4 @@ function Get-SystemdVersion {
|
|||||||
$matches = [regex]::Matches((systemctl --version | head -n 1), "\((.*?)\)")
|
$matches = [regex]::Matches((systemctl --version | head -n 1), "\((.*?)\)")
|
||||||
$result = foreach ($match in $matches) {$match.Groups[1].Value}
|
$result = foreach ($match in $matches) {$match.Groups[1].Value}
|
||||||
return $result
|
return $result
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user