This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -85,13 +85,18 @@ jobs:
8585 shell : pwsh
8686 if : ${{ matrix.name == 'i686-msvc-1' || matrix.name == 'i686-msvc-2' || matrix.name == 'dist-i686-msvc' }}
8787 run : |
88+ # Add the msys2 bin dir to PATH to stop it from prepending itself to PATH
8889 echo "c:/msys64/usr/bin" >> $env:GITHUB_PATH
90+
91+ # Get the Visual Studio shell, setting the SDK version to 10.0.22621.0
8992 $vs = &"${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -format value -property installationPath
9093 &$vs\Common7\Tools\Launch-VsDevShell.ps1 -HostArch Amd64 -Arch x86
9194 Enter-VsDevshell -VsInstallPath $vs -HostArch Amd64 -Arch x86 -DevCmdArguments "-winsdk=10.0.22621.0"
95+
96+ # Update the github environment and path.
9297 $new_env = ls env: | foreach { echo "$($_.key)=$($_.value)" }
9398 $new_env >> $env:GITHUB_ENV
94- $ env:PATH >> $env:GITHUB_PATH
99+ foreach ($path in $ env:PATH -split ';') { echo $path >> $env:GITHUB_PATH }
95100
96101 - name : disable git crlf conversion
97102 run : git config --global core.autocrlf false
You can’t perform that action at this time.
0 commit comments