forked from ubdirdoc/segment-editor
-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (40 loc) · 1.09 KB
/
windows.yaml
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 build
on: [push]
jobs:
build:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- {
name: "Windows",
os: windows-latest,
buildtype: "Debug"
}
- {
name: "Windows",
os: windows-latest,
buildtype: "Release"
}
steps:
- uses: actions/checkout@v2
- uses: jurplel/install-qt-action@v2
- name: Get latest release version number
id: get_version
uses: battila7/get-version-action@v2
- name: Install dependencies
run: |
git submodule update --init --recursive
shell: bash
- name: Configure
run: |
mkdir build && cd build
cmake -G"Visual Studio 16 2019" -DBOOST_ROOT="$BOOST_ROOT_1_72_0" -DSEGMENT_RELEASE=1 ..
shell: bash
- name: Build
run: |
cd build
cmake --build . --config ${{ matrix.config.buildtype }}
cmake --build . --config ${{ matrix.config.buildtype }} --target install