File tree 3 files changed +23
-2
lines changed
3 files changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -168,3 +168,17 @@ jobs:
168
168
sudo xcode-select -switch /Applications/Xcode_${{ matrix.version }}.app
169
169
- name : Build
170
170
run : ./cppbuild/cppbuild
171
+
172
+ cpp-msvc-build :
173
+ name : C++ MSVC (Windows)
174
+ runs-on : windows-latest
175
+ strategy :
176
+ fail-fast : false
177
+ env :
178
+ CC : cl
179
+ CXX : cl
180
+ steps :
181
+ - name : Checkout code
182
+ uses : actions/checkout@v2
183
+ - name : Build
184
+ run : cppbuild/cppbuild.cmd
Original file line number Diff line number Diff line change 1
1
@ if " %DEBUG% " == " " @ echo off
2
- setlocal
2
+ setlocal EnableDelayedExpansion
3
3
4
4
set SOURCE_DIR = %CD%
5
5
set BUILD_DIR = %CD% \cppbuild\Release
6
6
7
+ call cppbuild/vs-helper.cmd
8
+ if %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%
9
+
7
10
if EXIST %BUILD_DIR% rd /S /Q %BUILD_DIR%
8
11
9
12
md %BUILD_DIR%
10
13
pushd %BUILD_DIR%
11
14
12
- cmake -G " Visual Studio 14 Win64" %SOURCE_DIR%
13
15
cmake --build . --clean-first --config Release
16
+ if %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%
17
+
14
18
ctest -C Release
19
+ if %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%
Original file line number Diff line number Diff line change
1
+ rem Invoke script to set all of the Visual Studio ENV variables
2
+ @ for /f " usebackq delims=#" %% a in (`" %programfiles(x86)% \Microsoft Visual Studio\Installer\vswhere" -latest -property installationPath`) do " %% a\Common7\Tools\VsDevCmd.bat"
You can’t perform that action at this time.
0 commit comments