Advertisement
Tiberium

Untitled

Mar 30th, 2017
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 3.09 KB | None | 0 0
  1. version: '{build}'
  2.  
  3. matrix:
  4.   fast_finish: true
  5.  
  6. # branches to build
  7. branches:
  8.  # whitelist
  9.   only:
  10.    - master
  11.  
  12. environment:
  13.   matrix:
  14.     - MINGW_DIR: mingw64
  15.       MINGW_URL: https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/4.9.2/threads-win32/seh/x86_64-4.9.2-release-win32-seh-rt_v4-rev4.7z/download
  16.       MINGW_ARCHIVE: x86_64-4.9.2-release-win32-seh-rt_v4-rev4.7z
  17.       SQLITE_URL: http://www.sqlite.org/2017/sqlite-dll-win64-x64-3160200.zip
  18.       SQLITE_ARCHIVE: sqlite-dll-win64-x64-3160200.zip
  19.       platform: x64
  20.     # - MINGW_DIR: mingw32
  21.     #   MINGW_URL: https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/4.9.2/threads-win32/dwarf/i686-4.9.2-release-win32-dwarf-rt_v4-rev4.7z/download
  22.     #   MINGW_ARCHIVE: i686-4.9.2-release-win32-dwarf-rt_v4-rev4.7z
  23.     #   SQLITE_URL: http://www.sqlite.org/2017/sqlite-dll-win32-x86-3160200.zip
  24.     #   SQLITE_ARCHIVE: sqlite-dll-win32-x86-3160200.zip
  25.     #   platform: x86
  26.  
  27. install:
  28.  - git clone --branch=devel https://github.com/nim-lang/Nim.git C:\projects\nim
  29.   - cd C:\projects\nim
  30.   - MKDIR %CD%\DIST
  31.   - MKDIR %CD%\DIST\PCRE
  32.   - nuget install pcre -Verbosity quiet -Version 8.33.0.1 -OutputDirectory %CD%\DIST\PCRE
  33.   - IF not exist "%SQLITE_ARCHIVE%" appveyor DownloadFile "%SQLITE_URL%" -FileName "%SQLITE_ARCHIVE%"
  34.   - 7z x -y "%SQLITE_ARCHIVE%" -o"%CD%\DIST"> nul
  35.   - IF not exist "%MINGW_ARCHIVE%" appveyor DownloadFile "%MINGW_URL%" -FileName "%MINGW_ARCHIVE%"
  36.   - 7z x -y "%MINGW_ARCHIVE%" -o"%CD%\DIST"> nul
  37.   - SET PATH=%CD%\DIST\%MINGW_DIR%\BIN;%CD%\BIN;%PATH%
  38.   - IF "%PLATFORM%" == "x64" ( copy C:\OpenSSL-Win64\libeay32.dll %CD%\BIN\libeay64.dll & copy C:\OpenSSL-Win64\libeay32.dll %CD%\BIN\libeay32.dll & copy C:\OpenSSL-Win64\libssl32.dll %CD%\BIN\libssl64.dll & copy C:\OpenSSL-Win64\libssl32.dll %CD%\BIN\libssl32.dll )
  39.     ELSE ( copy C:\OpenSSL-Win32\libeay32.dll %CD%\BIN\libeay32.dll & copy C:\OpenSSL-Win32\libssl32.dll %CD%\BIN\libssl32.dll )
  40.   - IF "%PLATFORM%" == "x64" ( copy %CD%\DIST\sqlite3.dll %CD%\BIN\sqlite3_64.dll ) ELSE ( copy %CD%\DIST\sqlite3.dll %CD%\BIN\sqlite3_32.dll )
  41.   - IF "%PLATFORM%" == "x64" ( copy %CD%\DIST\PCRE\pcre.redist.8.33.0.1\build\native\bin\v100\x64\Release\dynamic\utf8\pcre8.dll %CD%\bin\pcre64.dll ) ELSE ( copy %CD%\DIST\PCRE\pcre.redist.8.33.0.1\build\native\bin\v100\Win32\Release\dynamic\utf8\pcre8.dll %CD%\bin\pcre32.dll )
  42.   - git clone --depth 1 https://github.com/nim-lang/csources
  43.   - cd csources
  44.   - IF "%PLATFORM%" == "x64" ( build64.bat ) else ( build.bat )
  45.   - cd ..
  46.  
  47. build_script:
  48.  - bin\nim c koch
  49.   - koch boot -d:release
  50.   - koch nimble
  51.   - nimble install -y strfmt
  52.   - cd C:\projects\nickelvk
  53.   - nim c -o:vkbot.win64.exe -d:release src\vkbot.nim
  54.  
  55. deploy:
  56.   provider: GitHub
  57.   tag: $(appveyor_build_version)
  58.   release: Nickel (Windows)$(appveyor_build_version)
  59.   description: ''
  60.   auth_token:
  61.     secure: EFRBY5eEn9IW7LM+b3a2VqZDS1bkkXTpsgj2rpvVEnpnvZdfXOD3CYXeWvAquGrA
  62.   draft: true
  63.   artifact: 'C:\projects\nickelvk\src\kbot.win64.exe'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement