Skip to content

Commit 66b0762

Browse files
authored
Add github action: CI windows (#190)
1 parent 4720ba7 commit 66b0762

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

.github/workflows/CI-windows.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Some convenient links:
2+
# - https://github.com/actions/virtual-environments/blob/master/images/win/Windows2019-Readme.md
3+
#
4+
5+
name: CI-windows
6+
7+
on: [push,pull_request]
8+
9+
defaults:
10+
run:
11+
shell: cmd
12+
13+
jobs:
14+
15+
build:
16+
strategy:
17+
matrix:
18+
# windows 2016 should default to VS 2017. Not supported by setup-msbuild
19+
os: [windows-2019]
20+
fail-fast: true
21+
22+
runs-on: ${{ matrix.os }}
23+
24+
steps:
25+
- uses: actions/checkout@v2
26+
27+
- name: Setup msbuild.exe
28+
uses: microsoft/setup-msbuild@v1.0.0
29+
30+
- name: Run cmake
31+
run: |
32+
cmake -G "Visual Studio 16" . -A x64
33+
dir
34+
35+
- name: Build
36+
run: |
37+
msbuild -m simplecpp.sln /p:Configuration=Release /p:Platform=x64
38+
39+
- name: Test
40+
run: |
41+
.\Release\testrunner.exe
42+

0 commit comments

Comments
 (0)