Skip to content

Commit

Permalink
try the newest MinGW version on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
egor-tensin committed Jan 1, 2023
1 parent 95a035f commit c28ffad
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,21 +149,15 @@ runs:
$mingw_lib = Join-Path $mingw_root $prefix lib
$pkg = 'mingw'
# As of 2021-01-15, the latest package version (10.2.0) is broken.
# a) I don't think it's been released (at least I haven't found
# any announcements).
# b) It was seemingly built without threading (no <mutex>,
# <thread>, etc.).
$version = '8.1.0'
if ($x64) {
# If the 32-bit version is installed, we won't detect that.
# But it's not that important, and we save a lot of time.
Install-Package $pkg --version $version
Install-Package $pkg
} else {
# Assuming the 64-bit version is installed.
Remove-Package $pkg
Install-Package $pkg --version $version --x86
Install-Package $pkg --x86
}
echo $mingw_bin >> $env:GITHUB_PATH
Expand Down

0 comments on commit c28ffad

Please sign in to comment.