-
Notifications
You must be signed in to change notification settings - Fork 35
48 lines (46 loc) · 1.18 KB
/
build_msvc.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: Build (MSVC)
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build-windows-msvc:
name: Build on Windows with MSVC
runs-on: windows-latest
steps:
- name: Clone source tree
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Clone 3rdparty libraries
uses: actions/checkout@v1
with:
repository: gkv311/sview-deps-wnt
ref: 'master'
path: sview-deps-wnt
fetch-depth: 1
- name: Setup MSVC
uses: ilammy/[email protected]
with:
arch: x64
- name: Install dependencies
run: |
choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System' -y
- name: Unpacking dependencies
shell: cmd
run: |
call .\sview-deps-wnt\unpack.bat
- name: Configure project
run: |
mkdir "build"
cmake -T host=x64 -D BUILD_TREAT_WARNINGS_AS_ERRORS=ON -S . -B "./build"
- name: Build project
run: |
cmake --build "./build" --config Release -- /m
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: sview-msvc
path: build/Release