-
Notifications
You must be signed in to change notification settings - Fork 4
/
appveyor.yml
49 lines (36 loc) · 1.31 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
version: 3.0.{build}
image: Visual Studio 2019
install:
- cd %APPVEYOR_BUILD_FOLDER%
- git submodule update --init --recursive
# setup envionment
- set PATH=C:\Qt\5.13\msvc2017_64\bin;%PATH%
- call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
# Download Antlr 4 jar
- curl -fsSL -o antlr.jar https://www.antlr.org/download/antlr-4.7.2-complete.jar
- cd C:\Tools\vcpkg
- git pull
- .\bootstrap-vcpkg.bat
- vcpkg --triplet x64-windows install openmesh
- vcpkg --triplet x64-windows install opensubdiv
- vcpkg --triplet x64-windows install pugixml
build_script:
- cmd: >-
cd %APPVEYOR_BUILD_FOLDER%
md build-appveyor
cd build-appveyor
cmake .. -G "NMake Makefiles"
-DCMAKE_TOOLCHAIN_FILE=C:\Tools\vcpkg\scripts\buildsystems\vcpkg.cmake
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX=%APPVEYOR_BUILD_FOLDER%/install
-DANTLR_EXECUTABLE=%APPVEYOR_BUILD_FOLDER%/antlr.jar
type CMakeCache.txt
cmake --build . --target install
cd ..
after_build:
- cmd: del /f install\opengl32sw.dll
- cmd: 7z a Nome3-%APPVEYOR_BUILD_VERSION%-win64.zip install
- cmd: 7z rn Nome3-%APPVEYOR_BUILD_VERSION%-win64.zip install Nome3-%APPVEYOR_BUILD_VERSION%-win64
artifacts:
- path: Nome3-%APPVEYOR_BUILD_VERSION%-win64.zip
name: Nome