Skip to content

Commit 1084ef6

Browse files
authored
Merge pull request #18 from atcoder/patch/msvc
enable unittest for msvc
2 parents 60b4682 + d655c33 commit 1084ef6

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/unittest_msvc.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Unittest(MSVC)
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
gtest-msvc:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
include:
11+
- os: windows-latest
12+
msvc: "Visual Studio 16 2019"
13+
- os: windows-2016
14+
msvc: "Visual Studio 15 2017"
15+
16+
steps:
17+
- name: Setup MSBuild.exe
18+
uses: microsoft/[email protected]
19+
- uses: actions/checkout@v2
20+
with:
21+
submodules: recursive
22+
- name: run unittest
23+
run: |
24+
cd test/unittest &&
25+
mkdir build &&
26+
cd build &&
27+
cmake .. -G "${{ matrix.msvc }}" -A x64 -Dgtest_force_shared_crt=TRUE &&
28+
msbuild ACLibrary.sln &&
29+
ctest -C Debug -V

0 commit comments

Comments
 (0)