Skip to content

Commit c19d358

Browse files
committed
Update ci.yml
1 parent 5e8ba43 commit c19d358

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/ci.yml

+6-1
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)