aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/action.yml
diff options
context:
space:
mode:
Diffstat (limited to 'action.yml')
-rw-r--r--action.yml10
1 files changed, 7 insertions, 3 deletions
diff --git a/action.yml b/action.yml
index 0e7253f..b80d49c 100644
--- a/action.yml
+++ b/action.yml
@@ -119,10 +119,14 @@ runs:
$pkg = if ($x64) { 'mingw64-x86_64-gcc-g++' } else { 'mingw64-i686-gcc-g++' }
Install-Package $pkg
+ $bin_dir = cygpath.exe -wa "/usr/$prefix/sys-root/mingw/bin"
+ $lib_dir = cygpath.exe -wa "/usr/$prefix/sys-root/mingw/lib"
+
+ echo $bin_dir >> $env:GITHUB_PATH
+
if ($static_workaround) {
- $cygwin_lib = Join-Path C: tools cygwin usr $prefix sys-root mingw lib
- Remove-Item (Join-Path $cygwin_lib 'libpthread.dll.a')
- Remove-Item (Join-Path $cygwin_lib 'libwinpthread.dll.a')
+ Remove-Item (Join-Path $lib_dir 'libpthread.dll.a')
+ Remove-Item (Join-Path $lib_dir 'libwinpthread.dll.a')
}
} elseif ($windows_host) {
$choco = Locate-Choco