-
Notifications
You must be signed in to change notification settings - Fork 10
56 lines (54 loc) · 1.72 KB
/
build.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
49
50
51
52
53
54
55
56
name: Build
# Triggers on main branch pushes
on:
push:
branches: [ main ]
# Allow manual triggering
workflow_dispatch:
jobs:
build:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
# Checkout submodules (required for fever module used in app update system)
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Set placeholder project version
shell: bash
run: |
PROJ_VER=0.0.0
echo "$PROJ_VER" > version.txt
echo "PROJ_VER=$PROJ_VER" >> $GITHUB_ENV
# Setup build environment
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
version: '5.14.2'
host: 'windows'
target: 'desktop'
arch: 'win64_msvc2017_64'
dir: '${{ github.workspace }}/qt-install/'
install-deps: 'true'
modules: 'qtwebengine'
tools-only: 'false'
- name: Install jom, inno setup, doxygen
shell: powershell
run: |
choco install jom
choco install innosetup
choco install doxygen.install
# Install 3rd party dependencies
- name: Install 3rdparty
shell: cmd
run: |
call "%programfiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
.\scripts\3rdparty.bat
# Build application
- name: Build
shell: cmd
run: |
call "%programfiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
mkdir build
cd build
qmake.exe "CONFIG+=qtquickcompiler WITH_I3DRSGM SHOW_CONSOLE" ../stereo_vision_toolkit.pro -spec win32-msvc
jom.exe