Skip to content

Commit

Permalink
Merge pull request fireice-uk#170 from ruzickap/feature/add_windows_ci
Browse files Browse the repository at this point in the history
Add appveyor initial file
  • Loading branch information
psychocrypt authored Jun 27, 2017
2 parents 8e50d91 + fd54b7e commit 21af592
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Operating system (build VM template)
os: Visual Studio 2017

# build platform
platform: x64

# clone directory
clone_folder: c:\xmr-stak-cpu

install:
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat"
- call "%VS150COMNTOOLS%\VsMSBuildCmd.bat"
# - mkdir c:\xmr-stak-dep
# - curl -fsS https://slproweb.com/download/Win32OpenSSL-1_1_0f.exe -o Win32OpenSSL.exe
# - Win32OpenSSL.exe /silent /verysilent /sp- /suppressmsgboxes
# - curl -fsS https://www.open-mpi.org/software/hwloc/v1.11/downloads/hwloc-win64-build-1.11.7.zip -o hwloc-win64-build.zip
# - 7z x hwloc-win64-build.zip -o"c:\xmr-stak-dep" -y > nul
# - curl -fsS http://mirror.reismil.ch/gnu/libmicrohttpd/libmicrohttpd-latest-w32-bin.zip -o libmicrohttpd-w32-bin.zip
# - 7z x libmicrohttpd-w32-bin.zip -o"c:\xmr-stak-dep" -y > nul
- cd c:\xmr-stak-cpu & mkdir build & cd build
# - set CMAKE_PREFIX_PATH=C:\xmr-stak-dep\hwloc-win64-build-1.11.7;C:\xmr-stak-dep\libmicrohttpd-0.9.55-w32-bin\x86_64\VS2017\Release-static
- cmake -G "Visual Studio 15 2017 Win64" -DOpenSSL_ENABLE=OFF -DHWLOC_ENABLE=OFF -DMICROHTTPD_ENABLE=OFF -T v141,host=x64 ..
- msbuild xmr-stak-cpu.sln /p:Configuration=Release
- cd bin\Release
- copy c:\xmr-stak-dep\hwloc-win64-build-1.11.7\bin\libhwloc-5.dll .
- copy c:\xmr-stak-dep\libmicrohttpd-0.9.55-w32-bin\x86_64\VS2017\Release-dll\libmicrohttpd-dll.dll .
- xmr-stack-cpu -c ..\..\..\config.txt

0 comments on commit 21af592

Please sign in to comment.