File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -85,13 +85,18 @@ jobs:
85
85
shell : pwsh
86
86
if : ${{ matrix.name == 'i686-msvc-1' || matrix.name == 'i686-msvc-2' || matrix.name == 'dist-i686-msvc' }}
87
87
run : |
88
+ # Add the msys2 bin dir to PATH to stop it from prepending itself to PATH
88
89
echo "c:/msys64/usr/bin" >> $env:GITHUB_PATH
90
+
91
+ # Get the Visual Studio shell, setting the SDK version to 10.0.22621.0
89
92
$vs = &"${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -format value -property installationPath
90
93
&$vs\Common7\Tools\Launch-VsDevShell.ps1 -HostArch Amd64 -Arch x86
91
94
Enter-VsDevshell -VsInstallPath $vs -HostArch Amd64 -Arch x86 -DevCmdArguments "-winsdk=10.0.22621.0"
95
+
96
+ # Update the github environment and path.
92
97
$new_env = ls env: | foreach { echo "$($_.key)=$($_.value)" }
93
98
$new_env >> $env:GITHUB_ENV
94
- $ env:PATH >> $env:GITHUB_PATH
99
+ foreach ($path in $ env:PATH -split ';') { echo $path >> $env:GITHUB_PATH }
95
100
96
101
- name : disable git crlf conversion
97
102
run : git config --global core.autocrlf false
You can’t perform that action at this time.
0 commit comments