-
-
Notifications
You must be signed in to change notification settings - Fork 263
48 lines (46 loc) · 1.07 KB
/
build_windows.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: ci-build-windows
on:
push:
paths-ignore:
- .dockerignore
- .gitignore
- .gitattributes
- AUTHORS
- CONTRIBUTING.md
- docker-compose.yml
- LICENSE
- README.md
- Dockerfile
- images/*
- docker/*
pull_request:
jobs:
build-windows:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
strategy:
matrix:
config:
- {
name: Windows MSVC 2019,
os: windows-2019,
cmake: '3.19.0'
}
- {
name: Windows MSVC 2022,
os: windows-2022,
cmake: '3.24.2'
}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up CMake
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: ${{ matrix.config.cmake }}
- name: Cpplint
run: cmake -P cmake/cpplint.cmake
- name: Configure
run: cmake -B build -A x64 -D DOWNLOAD_DATASETS=OFF
- name: Build tutorials
run: cmake --build build --config Release --parallel 4