-
Notifications
You must be signed in to change notification settings - Fork 8
/
.appveyor.yml
71 lines (61 loc) · 2.22 KB
/
.appveyor.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
version: '{branch}-{build}'
init:
# Create our AppVeyor version
- ps: $env:commit = $env:appveyor_repo_commit.SubString(0,7)
- ps: Update-AppveyorBuild -Version ("{0}-{1}-{2}" -f $env:appveyor_repo_branch,$env:appveyor_build_number,$env:commit )
os: Visual Studio 2019
environment:
matrix:
- MSVC_VERSION: 19
RUNTIME_LINKAGE: static
QT_VERSION: 5.15
QT_LINKAGE: static
COVERITY_BUILD_CANDIDATE: True
#https://www.appveyor.com/docs/build-environment/#qt
QTDIR: C:\Qt\%QT_VERSION%\msvc2019_64
PRJLIBS: VCRUNTIME140.dll MSVCP140.dll ucrtbased.dll
configuration:
- release
- debug
install:
# Set and load necessary variables
- '%QTDIR%\bin\qtenv2.bat'
- qmake -v
- set PRJLIBDIR=%WINDIR%\SysWOW64 # Find vclibss
- set QTDIR
- call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
- set BIN=mini-qml
before_build:
# Prepare the out-of-source build directory.
- cd %APPVEYOR_BUILD_FOLDER%
- mkdir %APPVEYOR_BUILD_FOLDER%-build
- qmake -o %APPVEYOR_BUILD_FOLDER%-build -r -Wall -Wlogic -Wparser CONFIG+=%CONFIGURATION% %APPVEYOR_BUILD_FOLDER%
build_script:
# Compile it and check for .exe
- cd %APPVEYOR_BUILD_FOLDER%-build
- nmake
- dir /b /s *.exe
after_build:
# Add a link to the build output within the source directory. This is needed because AppVeyor does
# not support extracting artifacts from out-of-source build directories. See 'artifacts' below.
- dir /b /s *.exe
- mkdir deploy
- copy %APPVEYOR_BUILD_FOLDER%-build\%CONFIGURATION%\%BIN%.exe deploy\%BIN%.exe
- windeployqt --qmldir %APPVEYOR_BUILD_FOLDER%/qml --%CONFIGURATION% deploy/%BIN%.exe --verbose=2
- for %%I in (%PRJLIBS%) do copy %PRJLIBDIR%\%%I deploy\
- 7z a -tzip %BIN%_%CONFIGURATION%.zip deploy -r
- copy %APPVEYOR_BUILD_FOLDER%-build\%BIN%_%CONFIGURATION%.zip %APPVEYOR_BUILD_FOLDER%\%BIN%_%CONFIGURATION%.zip
- dir /b /s *.zip
artifacts:
- path: '%BIN%_%CONFIGURATION%.zip'
name: '%BIN%'
deploy:
- provider: GitHub
on:
branch: master
release: continuous
artifact: '%BIN%'
draft: false
prerelease: true
auth_token:
secure: BC8BBwf6sV+/f+AoRHCskXQBXwdvXuXB7sFuJWN0lbIzJs8E87T77aY5HovyaFmc