50 lines
2.2 KiB
YAML
50 lines
2.2 KiB
YAML
image: Visual Studio 2017
|
|
|
|
environment:
|
|
DEPLOY_DIR: Spectral-%APPVEYOR_BUILD_VERSION%
|
|
matrix:
|
|
- QTDIR: C:\Qt\5.12\msvc2017_64
|
|
VCVARS: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build\\vcvars64.bat"
|
|
PLATFORM:
|
|
|
|
init:
|
|
- call "%QTDIR%\bin\qtenv2.bat"
|
|
- set PATH=%PATH%;C:\Qt\Tools\QtCreator\bin
|
|
- call "%VCVARS%" %platform%
|
|
- cd /D "%APPVEYOR_BUILD_FOLDER%"
|
|
|
|
before_build:
|
|
- git submodule update --init --recursive
|
|
- git clone https://gitlab.matrix.org/matrix-org/olm.git
|
|
- cd olm
|
|
- cmake -LA -G "NMake Makefiles JOM" -H. -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX="install" -DBUILD_SHARED_LIBS=NO
|
|
- cmake --build build --target install
|
|
- cd ..
|
|
- git clone https://github.com/frankosterfeld/qtkeychain.git
|
|
- cd qtkeychain
|
|
- cmake -LA -G "NMake Makefiles JOM" -H. -Bbuild -DCMAKE_CXX_FLAGS="/EHsc /W3" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX="install" -DQTKEYCHAIN_STATIC=ON
|
|
- cmake --build build --target install
|
|
- cd ..
|
|
- git clone https://github.com/commonmark/cmark.git
|
|
- cd cmark
|
|
- cmake -LA -G "NMake Makefiles JOM" -H. -Bbuild -DCMAKE_CXX_FLAGS="/EHsc /W3" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="install" -DCMARK_SHARED=ON -DCMARK_STATIC=OFF -DCMARK_TESTS=OFF
|
|
- cmake --build build --target install
|
|
- cd ..
|
|
|
|
build_script:
|
|
- cmake -LA -G "NMake Makefiles JOM" -H. -Bbuild -DCMAKE_CXX_FLAGS="/EHsc /W3" -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX="%DEPLOY_DIR%" -DUSE_INTREE_LIBQMC=1 -DQt5Keychain_DIR="qtkeychain/install/lib/cmake/Qt5Keychain" -DOlm_DIR=olm/install/lib/cmake/Olm -DCMARK_LIBRARY=C:/projects/spectral/cmark/install/lib/cmark.lib -DCMARK_INCLUDE_DIR=C:/projects/spectral/cmark/install/include -DDEPLOY_VERBOSITY=%DEPLOY_VERBOSITY%
|
|
- cmake --build build
|
|
|
|
after_build:
|
|
- cmake --build build --target install
|
|
- windeployqt --release --qmldir qml --qmldir imports "%DEPLOY_DIR%\spectral.exe"
|
|
|
|
- copy C:\projects\spectral\cmark\install\lib\cmark.lib "%DEPLOY_DIR%\"
|
|
- copy C:\projects\spectral\cmark\install\bin\cmark.dll "%DEPLOY_DIR%\"
|
|
|
|
- 7z a spectral.zip "%DEPLOY_DIR%\*"
|
|
|
|
artifacts:
|
|
- path: spectral.zip
|
|
name: portable
|