appveyor script: using install.bat
Egor Yusov
2 years ago
23 | 23 | # clone submodules |
24 | 24 | - git submodule update --init --recursive |
25 | 25 | - git clone https://github.com/DiligentGraphics/DiligentCore.git ../DiligentCore --recursive |
26 | ||
27 | # Install a recent CMake | |
28 | - set CMAKE_URL="https://github.com/Kitware/CMake/releases/download/v3.15.4/cmake-3.15.4-win64-x64.zip" | |
29 | - appveyor DownloadFile %CMAKE_URL% -FileName cmake.zip | |
30 | - 7z x cmake.zip -oC:\projects\deps > nul | |
31 | - move C:\projects\deps\cmake-* C:\projects\deps\cmake # Move to a version-agnostic directory | |
32 | - set PATH=C:\projects\deps\cmake\bin;C:\Python37;%PATH% | |
33 | - cmake --version | |
34 | - python --version | |
26 | - ..\DiligentCore\BuildTools\Scripts\appveyor\install.bat | |
35 | 27 | |
36 | 28 | before_build: |
37 | 29 | - cd c:\projects\DiligentTools\BuildTools\FormatValidation |
41 | 33 | - echo Project(DiligentTools_Test) >> CMakeLists.txt |
42 | 34 | - echo add_subdirectory(DiligentCore) >> CMakeLists.txt |
43 | 35 | - echo add_subdirectory(DiligentTools) >> CMakeLists.txt |
44 | - cmake -S . -B ./build -G "Visual Studio 15 2017" -A x64 | |
36 | - cmake -S . -B ./build -G "Visual Studio 15 2017" -A %PLATFORM% | |
45 | 37 | |
46 | 38 | build: |
47 | 39 | project: c:\projects\build\DiligentTools_Test.sln |