mirror of
https://github.com/actions/runner-images.git
synced 2025-12-28 20:58:32 +08:00
install the latest version
This commit is contained in:
@@ -5,9 +5,4 @@
|
||||
|
||||
Choco-Install -PackageName mingw
|
||||
|
||||
# Make a copy of mingw32-make.exe to make.exe, which is a more discoverable name
|
||||
# and so the same command line can be used on Windows as on macOS and Linux
|
||||
$path = where.exe mingw32-make.exe | Get-Item
|
||||
Copy-Item -Path $path -Destination (Join-Path $path.Directory 'make.exe')
|
||||
|
||||
Invoke-PesterTests -TestFile "Tools" -TestName "Mingw64"
|
||||
|
||||
@@ -83,7 +83,7 @@ function Get-KindVersion {
|
||||
}
|
||||
|
||||
function Get-MinGWVersion {
|
||||
(gcc --version | Select-String -Pattern "MinGW-W64 project") -match "(?<version>\d+\.\d+\.\d+)" | Out-Null
|
||||
(gcc --version | Select-String -Pattern "GCC") -match "(?<version>\d+\.\d+\.\d+)" | Out-Null
|
||||
$mingwVersion = $Matches.Version
|
||||
return "Mingw-w64 $mingwVersion"
|
||||
}
|
||||
|
||||
@@ -127,7 +127,6 @@ Describe "Mingw64" {
|
||||
It "<ToolName>" -TestCases @(
|
||||
@{ ToolName = "gcc" }
|
||||
@{ ToolName = "g++" }
|
||||
@{ ToolName = "make" }
|
||||
) {
|
||||
"$ToolName --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user