Last active
March 7, 2019 13:59
-
-
Save manyoso/d3d5b6d7eece830aed86c452161aba4d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 1.0.{build} | |
configuration: Release | |
platform: x64 | |
image: | |
- Visual Studio 2017 | |
environment: | |
matrix: | |
- NAME: cuda | |
install: | |
- cmd: set CUDA=false | |
- cmd: IF %NAME%==cuda set CUDA=true | |
- cmd: set "CUDA_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0" | |
- cmd: IF %CUDA%==true IF NOT EXIST "%CUDA_PATH%" set CUDA_INSTALL=1 | |
- cmd: IF DEFINED CUDA_INSTALL appveyor DownloadFile https://developer.nvidia.com/compute/cuda/10.0/Prod/network_installers/cuda_10.0.130_win10_network | |
- cmd: IF DEFINED CUDA_INSTALL cuda_10.0.130_win10_network -s nvcc_10.0 cublas_dev_10.0 cublas_10.0 cudart_10.0 | |
- cmd: IF %CUDA%==true set PATH=%CUDA_PATH%\bin;%PATH% | |
- cmd: IF %CUDA%==true IF NOT EXIST C:\cache\cuda appveyor DownloadFile http://developer.download.nvidia.com/compute/redist/cudnn/v7.3.1/cudnn-10.0-windows10-x64-v7.3.1.20.zip | |
- cmd: IF %CUDA%==true IF NOT EXIST C:\cache\cuda 7z x cudnn-10.0-windows10-x64-v7.3.1.20.zip -oC:\cache | |
- cmd: set PKG_FOLDER="C:\cache" | |
- cmd: cd c:\cache | |
- cmd: call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64 | |
- cmd: IF NOT EXIST c:\cache\protobuf_build\ git clone -b v3.5.1 --single-branch --depth 1 https://github.com/google/protobuf.git | |
- cmd: IF NOT EXIST c:\cache\protobuf_build\ mkdir c:\cache\protobuf\build_msvc | |
- cmd: IF NOT EXIST c:\cache\protobuf_build\ cd c:\cache\protobuf\build_msvc | |
- cmd: IF NOT EXIST c:\cache\protobuf_build\ cmake -G "Visual Studio 15 2017 Win64" -Dprotobuf_BUILD_SHARED_LIBS=NO -Dprotobuf_MSVC_STATIC_RUNTIME=NO -Dprotobuf_BUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=c:/cache/protobuf_build ../cmake | |
- cmd: IF NOT EXIST c:\cache\protobuf_build\ msbuild INSTALL.vcxproj /p:Configuration=Release /p:Platform=x64 /m | |
- cmd: set PATH=c:\cache\protobuf_build\bin;%PATH% | |
- cmd: cd c:\cache | |
- cmd: IF NOT EXIST c:\cache\zlib_build\ git clone -b master --single-branch --depth 1 https://github.com/madler/zlib.git | |
- cmd: IF NOT EXIST c:\cache\zlib_build\ mkdir c:\cache\zlib\build_msvc | |
- cmd: IF NOT EXIST c:\cache\zlib_build\ cd c:\cache\zlib\build_msvc | |
- cmd: IF NOT EXIST c:\cache\zlib_build\ cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_INSTALL_PREFIX=c:/cache/zlib_build .. | |
- cmd: IF NOT EXIST c:\cache\zlib_build\ msbuild INSTALL.vcxproj /p:Configuration=Release /p:Platform=x64 /m | |
- cmd: cd c:\cache | |
- cmd: IF NOT EXIST c:\cache\qt-everywhere-src-5.12.1.zip appveyor DownloadFile https://download.qt.io/archive/qt/5.12/5.12.1/single/qt-everywhere-src-5.12.1.zip | |
- cmd: IF NOT EXIST c:\cache\qt-everywhere-src-5.12.1\ 7z x qt-everywhere-src-5.12.1.zip -oC:\cache | |
- cmd: IF NOT EXIST c:\cache\qt\5.12.1-static\ mkdir c:\cache\qt-everywhere-src-5.12.1_build | |
- cmd: IF NOT EXIST c:\cache\qt\5.12.1-static\ cd c:\cache\qt-everywhere-src-5.12.1_build | |
- cmd: IF NOT EXIST c:\cache\qt\5.12.1-static\ c:\cache\qt-everywhere-src-5.12.1\configure.bat -release -static -nomake tools -nomake tests -nomake examples -confirm-license -opensource -no-opengl -no-feature-xml -no-feature-network -no-feature-sql -no-feature-testlib -no-gui -no-widgets -no-dbus -skip qt3d -skip qtconnectivity -skip qtdeclarative -skip qtgamepad -skip qtlocation -skip qtmultimedia -skip qtsensors -skip qtserialbus -skip qtxmlpatterns -skip qtwayland -skip qtscript -skip qttools -prefix c:\cache\qt\5.12.1-static -mp | |
- cmd: IF NOT EXIST c:\cache\qt\5.12.1-static\ nmake /NOLOGO module-qtbase | |
- cmd: IF NOT EXIST c:\cache\qt\5.12.1-static\ cd c:\cache\qt-everywhere-src-5.12.1_build\qtbase | |
- cmd: IF NOT EXIST c:\cache\qt\5.12.1-static\ nmake /NOLOGO install | |
cache: | |
- C:\cache | |
- 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0' | |
build_script: | |
- cmd: call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64 | |
- cmd: mkdir c:\projects\build_allie | |
- cmd: cd c:\projects\build_allie | |
- cmd: c:\cache\qt\5.12.1-static\bin\qmake c:\projects\allie\allie.pro | |
- cmd: nmake /NOLOGO | |
artifacts: | |
- path: c:\projects\build_allie\bin\allie.exe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment