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.
This commit is contained in:
zeertzjq 2022-11-17 15:57:59 +08:00 committed by GitHub
parent ed27f0e93e
commit 6aa5520763
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -340,6 +340,8 @@ jobs:
- name: Install test deps
run: |
$PSNativeCommandArgumentPassing = 'Legacy'
& build\bin\nvim.exe "--version"
# Ensure that the "win32" feature is set.