Skip to content

Commit 76fae81

Browse files
authored
Merge pull request #16 from Garcia6l20/add_github_actions
add MSVC 2019 x64 build
2 parents e9de1b8 + 26a57b4 commit 76fae81

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/cmake.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ jobs:
3838
cxx_flags: -stdlib=libc++,
3939
exe_linker_flags: -lc++,
4040
}
41+
- {
42+
name: "Windows MSVC 2019 (x64)",
43+
os: windows-latest,
44+
cxx: "cl",
45+
environment_script: "C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Auxiliary/Build/vcvars64.bat",
46+
}
4147

4248
steps:
4349
- uses: actions/checkout@v2
@@ -89,9 +95,13 @@ jobs:
8995
# and build directories, but this is only available with CMake 3.13 and higher.
9096
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
9197
run: |
98+
# run environment setup script if any
99+
[ -n "${{ matrix.config.environment_script }}" ] && "${{ matrix.config.environment_script }}"
100+
92101
cmake $GITHUB_WORKSPACE \
93102
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
94103
-DCMAKE_CXX_STANDARD=20 \
104+
-DBUILD_TESTING=ON \
95105
-DCMAKE_CXX_FLAGS=${{ matrix.config.cxx_flags }} \
96106
-DCMAKE_EXE_LINKER_FLAGS=${{ matrix.config.exe_linker_flags }} \
97107
-DCMAKE_VERBOSE_MAKEFILE=ON

0 commit comments

Comments
 (0)