diff --git a/.github/workflows/test-build-windows.yml b/.github/workflows/test-build-windows.yml index b5d1fa8c..249d5747 100644 --- a/.github/workflows/test-build-windows.yml +++ b/.github/workflows/test-build-windows.yml @@ -34,26 +34,20 @@ jobs: Write-Output "VSDEVCMD=${installationPath}\Common7\Tools\VsDevCmd.bat" ` | Out-File -FilePath "${Env:GITHUB_ENV}" -Append - - name: Prepare MSVC x86 - shell: pwsh - run: | - & "${Env:COMSPEC}" /s /c "`"${Env:VSDEVCMD}`" -arch=x86 -host_arch=x64 -no_logo && set" ` - | Out-File -FilePath "${Env:GITHUB_ENV}" -Append - - name: Build MSVC x86 shell: pwsh run: | + & "${Env:COMSPEC}" /s /c "`"${Env:VSDEVCMD}`" -arch=x86 -host_arch=x64 -no_logo && set" ` + | % { , ($_ -Split '=', 2) } ` + | % { [System.Environment]::SetEnvironmentVariable($_[0], $_[1]) } meson -Denable_tests=True -Denable_extras=True --buildtype release --backend vs2022 build-msvc-x86 msbuild -m build-msvc-x86/vkd3d-proton.sln - - name: Prepare MSVC x64 - shell: pwsh - run: | - & "${Env:COMSPEC}" /s /c "`"${Env:VSDEVCMD}`" -arch=x64 -host_arch=x64 -no_logo && set" ` - | Out-File -FilePath "${Env:GITHUB_ENV}" -Append - - name: Build MSVC x64 shell: pwsh run: | + & "${Env:COMSPEC}" /s /c "`"${Env:VSDEVCMD}`" -arch=x64 -host_arch=x64 -no_logo && set" ` + | % { , ($_ -Split '=', 2) } ` + | % { [System.Environment]::SetEnvironmentVariable($_[0], $_[1]) } meson -Denable_tests=True -Denable_extras=True --buildtype release --backend vs2022 build-msvc-x64 msbuild -m build-msvc-x64/vkd3d-proton.sln \ No newline at end of file