From 68208ad6f2ee14c4f405face189276c22561e883 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 12 Mar 2023 16:01:09 +0100 Subject: actions/check-runtime-library: fix linked libs on Windows Apparently, MinGW doesn't link to either ucrtbase.dll or msvcrt.dll at all on Windows. --- .github/actions/check-runtime-library/action.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to '.github/actions') diff --git a/.github/actions/check-runtime-library/action.yml b/.github/actions/check-runtime-library/action.yml index 9a572b8..9d4be5e 100644 --- a/.github/actions/check-runtime-library/action.yml +++ b/.github/actions/check-runtime-library/action.yml @@ -121,11 +121,8 @@ runs: $windows_required = @('KERNEL32.dll') if ($env:CI_MINGW) { - if ($env:CI_HOST_WINDOWS) { - # This is only true for windows-2022 images. - $windows_required += 'ucrtbase.dll' - } else { - $windows_required += 'msvcrt.dll' + if (!$env:CI_HOST_WINDOWS) { + $windows_required += @('msvcrt.dll') } } # Linking libstdc++ statically on Cygwin is broken, see the -- cgit v1.2.3