2017-05-22 21:42:53 -07:00
|
|
|
@echo on
|
2017-10-16 06:10:20 -07:00
|
|
|
cd %APPVEYOR_BUILD_FOLDER%
|
|
|
|
SET "PREVPATH=%PATH%"
|
|
|
|
SET "PREVMSYSEM=%MSYSTEM%"
|
|
|
|
|
|
|
|
SET "PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin;%PATH%"
|
|
|
|
SET "MSYSTEM=MINGW64"
|
|
|
|
SET "APPVEYOR_CACHE_ENTRY_ZIP_ARGS=-m0=Copy"
|
|
|
|
|
2018-01-05 10:46:21 -08:00
|
|
|
bash -lc "cd ${APPVEYOR_BUILD_FOLDER} && if [ -s ""llvm+clang-6.0.0-win64-msvc-release.tar.xz"" ]; then echo 'skipping LLVM download'; else wget 'https://s3.amazonaws.com/ziglang.org/deps/llvm%%2bclang-6.0.0-win64-msvc-release.tar.xz'; fi && tar xf llvm+clang-6.0.0-win64-msvc-release.tar.xz" || exit /b
|
2017-10-16 06:10:20 -07:00
|
|
|
|
|
|
|
|
|
|
|
SET "PATH=%PREVPATH%"
|
|
|
|
SET "MSYSTEM=%PREVMSYSTEM%"
|
|
|
|
SET "ZIGBUILDDIR=%APPVEYOR_BUILD_FOLDER%\build-msvc-release"
|
2017-10-23 18:43:18 -07:00
|
|
|
SET "ZIGPREFIXPATH=%APPVEYOR_BUILD_FOLDER%\llvm+clang-6.0.0-win64-msvc-release"
|
2017-10-16 06:10:20 -07:00
|
|
|
|
2018-01-04 20:11:27 -08:00
|
|
|
call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
|
|
|
|
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
|
|
|
|
|
2017-10-16 06:10:20 -07:00
|
|
|
mkdir %ZIGBUILDDIR%
|
|
|
|
cd %ZIGBUILDDIR%
|
2018-03-30 14:24:56 -07:00
|
|
|
cmake.exe .. -Thost=x64 -G"Visual Studio 14 2015 Win64" "-DCMAKE_INSTALL_PREFIX=%ZIGBUILDDIR%" "-DCMAKE_PREFIX_PATH=%ZIGPREFIXPATH%" -DCMAKE_BUILD_TYPE=Release || exit /b
|
2017-10-16 06:10:20 -07:00
|
|
|
msbuild /p:Configuration=Release INSTALL.vcxproj || exit /b
|
|
|
|
|
2018-02-08 22:15:17 -08:00
|
|
|
bin\zig.exe build --build-file ..\build.zig test || exit /b
|