File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -54,18 +54,22 @@ jobs:
54
54
- run :
55
55
name : Pre-build (set up MSVC)
56
56
command : |
57
- @"<< parameters.vspath >>\VC\Auxiliary\Build\vcvarsall.bat" << parameters.arch >>
57
+ cmd.exe /c "call `"<< parameters.vspath >>\VC\Auxiliary\Build\vcvarsall.bat`" << parameters.arch >> && set > %temp%\vcvars.txt"
58
+ Get-Content "$env:temp\vcvars.txt" Foreach-Object {
59
+ if ($_ -match "^(.*?)=(.*)$") {
60
+ Set-Content "env:\$($matches[1])" $matches[2]
61
+ }
62
+ }
58
63
dist.bat gen
59
64
cmake . -G "NMake Makefiles"
60
- shell : cmd.exe /c
61
65
- run :
62
66
name : Build
63
67
command : nmake
64
- shell : cmd.exe /c
68
+ shell : cmd.exe
65
69
- run :
66
70
name : Test
67
71
command : ctest -V -LE json
68
- shell : cmd.exe /c
72
+ shell : cmd.exe
69
73
70
74
workflows :
71
75
ubuntu-build :
You can’t perform that action at this time.
0 commit comments