Created
May 21, 2017 13:17
-
-
Save jangko/cd4ffa5c9de1e836d219832796880306 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: '{build}' | |
cache: | |
- x86_64-4.9.2-release-win32-seh-rt_v4-rev4.7z | |
matrix: | |
fast_finish: true | |
environment: | |
matrix: | |
- MINGW_DIR: mingw64 | |
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 | |
MINGW_ARCHIVE: x86_64-4.9.2-release-win32-seh-rt_v4-rev4.7z | |
platform: x64 | |
install: | |
- MKDIR %CD%\DIST | |
- IF not exist "%MINGW_ARCHIVE%" appveyor DownloadFile "%MINGW_URL%" -FileName "%MINGW_ARCHIVE%" | |
- 7z x -y "%MINGW_ARCHIVE%" -o"%CD%\DIST"> nul | |
- SET PATH=%CD%\DIST\%MINGW_DIR%\BIN;%CD%\BIN;%PATH% | |
- git clone --depth 1 https://github.com/nim-lang/csources | |
- cd csources | |
- IF "%PLATFORM%" == "x64" ( build64.bat ) else ( build.bat ) | |
- cd .. | |
- git clone --depth 1 https://github.com/nim-lang/Nim.git | |
- copy %CD%\csources\bin\nim.exe %CD%\Nim\bin\nim.exe | |
- IF "%PLATFORM%" == "x64" ( copy C:\OpenSSL-Win64\libeay32.dll %CD%\Nim\bin\libeay64.dll & copy C:\OpenSSL-Win64\libeay32.dll %CD%\Nim\bin\libeay32.dll & copy C:\OpenSSL-Win64\libssl32.dll %CD%\Nim\bin\libssl64.dll & copy C:\OpenSSL-Win64\libssl32.dll %CD%\Nim\bin\libssl32.dll ) | |
ELSE ( copy C:\OpenSSL-Win32\libeay32.dll %CD%\Nim\bin\libeay32.dll & copy C:\OpenSSL-Win32\libssl32.dll %CD%\Nim\bin\libssl32.dll ) | |
build_script: | |
- SET PATH=%CD%\Nim\bin;%PATH% | |
- cd Nim | |
- nim c -d:release koch | |
- koch boot -d:release | |
- koch nimble | |
- cd .. | |
- nimble refresh | |
- nimble install nimBMP | |
- nimble install polyBool | |
- nimble install freetype | |
test_script: | |
- cd examples | |
- nim e build.nims | |
- nim e -d:release build.nims | |
- test_color_conv.bat | |
deploy: off |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment