forked from quotient-im/Quaternion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
61 lines (52 loc) · 2.09 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
image: Visual Studio 2017
environment:
CMAKE_ARGS: '-G "NMake Makefiles JOM" -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo'
matrix:
- QTDIR: C:\Qt\5.12.4\msvc2017_64
VCVARS: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build\\vcvars64.bat"
PLATFORM:
VER_SUFFIX: win64
- QTDIR: C:\Qt\5.12.4\msvc2017
VCVARS: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build\\vcvars32.bat"
PLATFORM: x86
VER_SUFFIX: win32
init:
- call "%QTDIR%\bin\qtenv2.bat"
- set PATH=C:\Qt\Tools\QtCreator\bin;%PATH%
- call "%VCVARS%" %PLATFORM%
- cd /D "%APPVEYOR_BUILD_FOLDER%"
before_build:
- if %APPVEYOR_REPO_TAG% == true (set VERSION=%APPVEYOR_REPO_TAG_NAME%) else for /F %%I in ('git rev-list --count HEAD') do set VERSION=git%%I
- set DEPLOY_DIR=Quaternion-%VERSION%
- git submodule update --init --recursive
- git clone https://gitlab.matrix.org/matrix-org/olm.git
- cmake %CMAKE_ARGS% -Holm -Bbuild/olm
- cmake --build build/olm
- git clone https://github.com/frankosterfeld/qtkeychain.git
- cmake %CMAKE_ARGS% -Hqtkeychain -Bbuild/qtkeychain -DQTKEYCHAIN_STATIC=ON -DCMAKE_INSTALL_PREFIX=install
- cmake --build build/qtkeychain --target install
build_script:
- cmake %CMAKE_ARGS% -LA -H. -Bbuild -DCMAKE_INSTALL_PREFIX="%DEPLOY_DIR%" -DUSE_INTREE_LIBQMC=1 -DOlm_DIR="build/olm" -DQt5Keychain_FOUND=TRUE -DQt5Keychain_DIR="install/lib/cmake/Qt5Keychain" -DDEPLOY_VERBOSITY=%DEPLOY_VERBOSITY%
- cmake --build build --target install
after_build:
- cd "%DEPLOY_DIR%"
- rmdir /S /Q bearer qmltooling
- cd ..
- 7z a quaternion-%VERSION%-%VER_SUFFIX%.zip "%DEPLOY_DIR%"
# Uncomment this to connect to the AppVeyor build worker
#on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
test: off
artifacts:
- path: quaternion*.zip
deploy:
- provider: Environment
name: GitHub
on:
APPVEYOR_REPO_TAG: true
- provider: Environment
name: Bintray
version: "%VERSION%"
on:
APPVEYOR_REPO_TAG: false
branch: master