From 12c119036be14cdd99dd5aabffb32e4e2c72b48b Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 15 Jan 2021 18:15:58 +0300 Subject: Windows: the latest Chocolatey pkg is broken --- action.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/action.yml b/action.yml index f213844..5a0713f 100644 --- a/action.yml +++ b/action.yml @@ -155,15 +155,20 @@ 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 , + # , etc.). + $version = '8.1.0' + + Remove-Package $pkg if ($x64) { - # If 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 mingw + Install-Package $pkg --version $version echo $mingw64_bin >> $env:GITHUB_PATH } else { - # Assuming the 64-bit version is installed. - Remove-Package mingw - Install-Package --x86 mingw + Install-Package $pkg --version $version --x86 echo $mingw32_bin >> $env:GITHUB_PATH } -- cgit v1.2.3