From 6aa5520763646140482e19f69a5994932bf1d9fd Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 17 Nov 2022 15:57:59 +0800 Subject: [PATCH] ci(windows): set $PSNativeCommandArgumentPassing = 'Legacy' (#21083) Ref https://github.com/actions/runner-images/issues/6586 Some runners are using new images, while some others are using old image. This is the only way I can find that makes it work on both. --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 53d52ec55a..9c9de055cf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -340,6 +340,8 @@ jobs: - name: Install test deps run: | + $PSNativeCommandArgumentPassing = 'Legacy' + & build\bin\nvim.exe "--version" # Ensure that the "win32" feature is set.