-
-
Notifications
You must be signed in to change notification settings - Fork 48
49 lines (39 loc) · 1.23 KB
/
windows_ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Windows
# TODO: MinGW(gcc) build
# TODO: llvm-mingw(clang) build
on:
push:
branches: [ dev ]
pull_request:
branches: [ dev ]
jobs:
# Windows(x64) + Visual Studio 2019 build
build-windows-msvc:
runs-on: windows-latest
name: Build for Windows(x64, MSVC)
# Use system installed cmake
# https://help.github.com/en/actions/reference/software-installed-on-github-hosted-runners
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Configure
run: .\vcsetup.bat
- name: Build
run: cmake --build build --config Release
- name: Test
run: ctest --test-dir build -C Release --output-on-failure
# Windows(32bit) + Visual Studio 2019 build
build-windows-msvc-win32:
runs-on: windows-latest
name: Build for Windows(Win32, MSVC)
# Use system installed cmake
# https://help.github.com/en/actions/reference/software-installed-on-github-hosted-runners
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Configure
run: .\vcsetup-32bit.bat
- name: Build
run: cmake --build build_win32 --config Release
- name: Test
run: ctest --test-dir build_win32 -C Release --output-on-failure