aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-01-15 18:15:58 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-01-15 18:15:58 +0300
commit12c119036be14cdd99dd5aabffb32e4e2c72b48b (patch)
tree94bd8997b214cf57e451fba704344ab38f937874
parentREADME: update (diff)
downloadsetup-mingw-12c119036be14cdd99dd5aabffb32e4e2c72b48b.tar.gz
setup-mingw-12c119036be14cdd99dd5aabffb32e4e2c72b48b.zip
Windows: the latest Chocolatey pkg is broken
-rw-r--r--action.yml17
1 files 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 <mutex>,
+ # <thread>, 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
}