.gitlab-ci.yml: Fix vcvars for powershell

This commit is contained in:
Luke Street 2020-05-27 13:47:18 -04:00
parent 9fd631249e
commit 2ec89dbde5
1 changed files with 7 additions and 1 deletions

View File

@ -118,7 +118,13 @@ build:linux:avx2:
tags: tags:
- win32 - win32
script: script:
- 'call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64' - >
cmd.exe /c "call `"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat`" && set > %temp%\vcvars.txt"
Get-Content "$env:temp\vcvars.txt" | Foreach-Object {
if ($_ -match "^(.*?)=(.*)$") {
Set-Content "env:\$($matches[1])" $matches[2]
}
}
- mkdir build - mkdir build
- cd build - cd build
- > - >