appveyor.yml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. version: '{build}'
  2. environment:
  3. MINGW_DIR: mingw64
  4. 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
  5. MINGW_ARCHIVE: x86_64-4.9.2-release-win32-seh-rt_v4-rev4.7z
  6. OPENBLAS_URL: https://sourceforge.net/projects/openblas/files/v0.3.5/OpenBLAS%200.3.5%20version.zip/download
  7. OPENBLAS_ARCHIVE: OpenBLAS-0.3.5.zip
  8. SQLITE_URL: http://www.sqlite.org/2017/sqlite-dll-win64-x64-3160200.zip
  9. SQLITE_ARCHIVE: sqlite-dll-win64-x64-3160200.zip
  10. platform: x64
  11. matrix:
  12. - NIM_TEST_PACKAGES: true
  13. - NIM_TEST_PACKAGES: false
  14. cache:
  15. - '%MINGW_ARCHIVE%'
  16. - '%SQLITE_ARCHIVE%'
  17. - '%OPENBLAS_ARCHIVE%'
  18. matrix:
  19. #allow_failures:
  20. # - NIM_TEST_PACKAGES: true
  21. fast_finish: true
  22. install:
  23. - ps: Install-Product node 8 # node 8 or later is required to test js async stuff
  24. - MKDIR %CD%\DIST
  25. - MKDIR %CD%\DIST\PCRE
  26. - nuget install pcre -Verbosity quiet -Version 8.33.0.1 -OutputDirectory %CD%\DIST\PCRE
  27. - IF not exist "%SQLITE_ARCHIVE%" appveyor DownloadFile "%SQLITE_URL%" -FileName "%SQLITE_ARCHIVE%"
  28. - 7z x -y "%SQLITE_ARCHIVE%" -o"%CD%\DIST"> nul
  29. - IF not exist "%MINGW_ARCHIVE%" appveyor DownloadFile "%MINGW_URL%" -FileName "%MINGW_ARCHIVE%"
  30. - 7z x -y "%MINGW_ARCHIVE%" -o"%CD%\DIST"> nul
  31. - IF not exist "%OPENBLAS_ARCHIVE%" appveyor DownloadFile "%OPENBLAS_URL%" -FileName "%OPENBLAS_ARCHIVE%"
  32. - 7z x -y "%OPENBLAS_ARCHIVE%" -o"%CD%\DIST"> nul
  33. - SET PATH=%CD%\DIST\%MINGW_DIR%\BIN;%CD%\BIN;%PATH%
  34. - 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 )
  35. ELSE ( copy C:\OpenSSL-Win32\libeay32.dll %CD%\BIN\libeay32.dll & copy C:\OpenSSL-Win32\libssl32.dll %CD%\BIN\libssl32.dll )
  36. - IF "%PLATFORM%" == "x64" ( copy %CD%\DIST\sqlite3.dll %CD%\BIN\sqlite3_64.dll ) ELSE ( copy %CD%\DIST\sqlite3.dll %CD%\BIN\sqlite3_32.dll )
  37. - 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 )
  38. - git clone --depth 1 https://github.com/nim-lang/csources
  39. - cd csources
  40. - IF "%PLATFORM%" == "x64" ( build64.bat ) else ( build.bat )
  41. - cd ..
  42. build_script:
  43. - bin\nim c koch
  44. - koch runCI
  45. deploy: off