mirror of
https://github.com/actions/runner-images.git
synced 2026-01-07 18:58:13 +08:00
Previously, the GitHub virtual environments only had MinGW v8.1.0 installed. That version was released in October of 2018 and, since then, MinGW has released versions all the way up to v11.2.0. This change updates the MinGW version to the latest available on Chocolatey for the Windows 2022 environment. Windows 2019 retains the current v8.1.0 version. Fixes #5530.
15 lines
699 B
PowerShell
15 lines
699 B
PowerShell
################################################################################
|
|
## File: Install-Mingw64.ps1
|
|
## Desc: Install GNU tools for Windows
|
|
################################################################################
|
|
|
|
$toolsetVersion = (Get-ToolsetContent).mingw.version
|
|
Choco-Install -PackageName mingw -ArgumentList "--version=$toolsetVersion"
|
|
|
|
# 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"
|