2020-01-01 04:31:43 +00:00
|
|
|
os: Visual Studio 2017
|
2018-04-14 02:36:20 +00:00
|
|
|
|
|
|
|
environment:
|
|
|
|
matrix:
|
|
|
|
- platform: x86
|
|
|
|
target: i686-pc-windows-msvc
|
2020-01-01 04:31:43 +00:00
|
|
|
qtdir: C:\Qt\5.13.2\msvc2017
|
2018-04-14 02:39:37 +00:00
|
|
|
sysdirname: system32
|
2018-09-28 02:45:39 +00:00
|
|
|
|
2018-04-14 02:36:20 +00:00
|
|
|
cache:
|
2019-03-03 08:52:18 +00:00
|
|
|
CGAL-4.13-Setup.exe -> appveyor.yml
|
2018-09-28 02:45:39 +00:00
|
|
|
|
2018-04-14 02:36:20 +00:00
|
|
|
install:
|
2018-04-14 05:21:18 +00:00
|
|
|
- if "%PLATFORM%" == "x86"
|
2020-01-01 04:31:43 +00:00
|
|
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat"
|
2019-03-03 08:52:18 +00:00
|
|
|
- if not exist CGAL-4.13-Setup.exe
|
|
|
|
appveyor DownloadFile https://github.com/CGAL/cgal/releases/download/releases/CGAL-4.13/CGAL-4.13-Setup.exe -FileName CGAL-4.13-Setup.exe
|
|
|
|
- CGAL-4.13-Setup.exe /S /D=%APPVEYOR_BUILD_FOLDER%\CGAL-4.13
|
|
|
|
- cd CGAL-4.13
|
2018-04-14 02:36:20 +00:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2018-04-14 05:39:26 +00:00
|
|
|
- if "%PLATFORM%" == "x86"
|
2020-01-01 04:31:43 +00:00
|
|
|
cmake -G "Visual Studio 15 2017" ../ -DBOOST_INCLUDEDIR=C:\Libraries\boost_1_66_0
|
2018-04-14 02:36:20 +00:00
|
|
|
- msbuild /p:Configuration=Release ALL_BUILD.vcxproj
|
2018-04-14 03:43:30 +00:00
|
|
|
- cd %APPVEYOR_BUILD_FOLDER%
|
2018-09-28 02:45:39 +00:00
|
|
|
|
2018-04-14 02:36:20 +00:00
|
|
|
build: false
|
|
|
|
|
|
|
|
test_script:
|
|
|
|
- set PATH=%PATH%;%QTDIR%\bin
|
2019-03-03 08:52:18 +00:00
|
|
|
- qmake "BOOST_INCLUDEDIR=C:\Libraries\boost_1_66_0" "CGAL_DIR=%APPVEYOR_BUILD_FOLDER%\CGAL-4.13"
|
2018-04-14 02:36:20 +00:00
|
|
|
- nmake -f Makefile.Release
|
2018-09-28 02:45:39 +00:00
|
|
|
|
2018-04-14 02:36:20 +00:00
|
|
|
after_test:
|
|
|
|
# Check deps by Dependency Walker
|
|
|
|
# Check Qt plugins by following https://wiki.qt.io/Deploy_an_Application_on_Windows
|
2020-01-01 04:31:43 +00:00
|
|
|
- set /p VCRedistVersion=<"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\Microsoft.VCRedistVersion.default.txt"
|
|
|
|
- set VCREDIST_CRT_DIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Redist\MSVC\%VCRedistVersion%\%PLATFORM%\Microsoft.VC141.CRT
|
2020-01-01 09:15:41 +00:00
|
|
|
- set VCREDIST_OPENMP_DIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Redist\MSVC\%VCRedistVersion%\%PLATFORM%\Microsoft.VC141.OPENMP
|
2020-01-01 04:31:43 +00:00
|
|
|
|
2018-12-01 03:44:25 +00:00
|
|
|
- set TAG=%APPVEYOR_REPO_TAG_NAME%
|
|
|
|
- if "%TAG%" == ""
|
|
|
|
set TAG=unstable
|
2019-12-31 02:05:06 +00:00
|
|
|
- if "%TAG%" == "unstable"
|
|
|
|
7z a dust3d-%TAG%-%PLATFORM%.zip %APPVEYOR_BUILD_FOLDER%\release\dust3d.pdb
|
2018-12-01 03:44:25 +00:00
|
|
|
- 7z a dust3d-%TAG%-%PLATFORM%.zip %APPVEYOR_BUILD_FOLDER%\release\dust3d.exe
|
2019-03-03 08:52:18 +00:00
|
|
|
- 7z a dust3d-%TAG%-%PLATFORM%.zip %APPVEYOR_BUILD_FOLDER%\CGAL-4.13\build\bin\Release\CGAL-vc140-mt-4.13.dll
|
|
|
|
- 7z a dust3d-%TAG%-%PLATFORM%.zip %APPVEYOR_BUILD_FOLDER%\CGAL-4.13\auxiliary\gmp\lib\libgmp-10.dll
|
|
|
|
- 7z a dust3d-%TAG%-%PLATFORM%.zip %APPVEYOR_BUILD_FOLDER%\CGAL-4.13\auxiliary\gmp\lib\libmpfr-4.dll
|
2020-01-01 12:12:09 +00:00
|
|
|
- 7z a dust3d-%TAG%-%PLATFORM%.zip C:\OpenSSL-v111-Win32\bin\libcrypto-1_1.dll
|
|
|
|
- 7z a dust3d-%TAG%-%PLATFORM%.zip C:\OpenSSL-v111-Win32\bin\libssl-1_1.dll
|
2018-12-01 03:44:25 +00:00
|
|
|
- 7z a dust3d-%TAG%-%PLATFORM%.zip %QTDIR%\bin\Qt5Widgets.dll
|
|
|
|
- 7z a dust3d-%TAG%-%PLATFORM%.zip %QTDIR%\bin\Qt5Gui.dll
|
|
|
|
- 7z a dust3d-%TAG%-%PLATFORM%.zip %QTDIR%\bin\Qt5Core.dll
|
2019-03-30 21:15:52 +00:00
|
|
|
- 7z a dust3d-%TAG%-%PLATFORM%.zip %QTDIR%\bin\Qt5Network.dll
|
2020-01-01 12:12:09 +00:00
|
|
|
- 7z a dust3d-%TAG%-%PLATFORM%.zip %QTDIR%\bin\opengl32sw.dll
|
2020-01-01 04:31:43 +00:00
|
|
|
- 7z a dust3d-%TAG%-%PLATFORM%.zip "%VCREDIST_CRT_DIR%\msvcp140.dll"
|
|
|
|
- 7z a dust3d-%TAG%-%PLATFORM%.zip "%VCREDIST_CRT_DIR%\vcruntime140.dll"
|
2020-01-01 09:15:41 +00:00
|
|
|
- 7z a dust3d-%TAG%-%PLATFORM%.zip "%VCREDIST_OPENMP_DIR%\vcomp140.dll"
|
2018-04-14 02:36:20 +00:00
|
|
|
- mkdir platforms
|
|
|
|
- copy %QTDIR%\plugins\platforms\qwindows.dll %APPVEYOR_BUILD_FOLDER%\platforms\qwindows.dll
|
2018-12-01 03:44:25 +00:00
|
|
|
- 7z a dust3d-%TAG%-%PLATFORM%.zip -r %APPVEYOR_BUILD_FOLDER%\platforms\
|
2018-12-02 05:56:36 +00:00
|
|
|
- mkdir imageformats
|
|
|
|
- copy %QTDIR%\plugins\imageformats\qjpeg.dll %APPVEYOR_BUILD_FOLDER%\imageformats\qjpeg.dll
|
|
|
|
- 7z a dust3d-%TAG%-%PLATFORM%.zip -r %APPVEYOR_BUILD_FOLDER%\imageformats\
|
2019-07-23 20:35:10 +00:00
|
|
|
- mkdir test
|
|
|
|
- 7z e dust3d-%TAG%-%PLATFORM%.zip -o%APPVEYOR_BUILD_FOLDER%\test *.* -r
|
|
|
|
- cd /d %APPVEYOR_BUILD_FOLDER%\test
|
|
|
|
- dust3d.exe :/resources/model-addax.ds3 -o addax.obj
|
|
|
|
- dust3d.exe :/resources/model-addax.ds3 -o addax.fbx
|
|
|
|
- dust3d.exe :/resources/model-addax.ds3 -o addax.glb
|
|
|
|
- dust3d.exe :/resources/model-bicycle.ds3 -o bicycle.obj
|
|
|
|
- dust3d.exe :/resources/model-bicycle.ds3 -o bicycle.fbx
|
|
|
|
- dust3d.exe :/resources/model-bicycle.ds3 -o bicycle.glb
|
|
|
|
- dust3d.exe :/resources/model-bob.ds3 -o bob.obj
|
|
|
|
- dust3d.exe :/resources/model-bob.ds3 -o bob.fbx
|
|
|
|
- dust3d.exe :/resources/model-bob.ds3 -o bob.glb
|
|
|
|
- dust3d.exe :/resources/model-dog-head.ds3 -o dog-head.obj
|
|
|
|
- dust3d.exe :/resources/model-dog-head.ds3 -o dog-head.fbx
|
|
|
|
- dust3d.exe :/resources/model-dog-head.ds3 -o dog-head.glb
|
|
|
|
- dust3d.exe :/resources/model-meerkat.ds3 -o meerkat.obj
|
|
|
|
- dust3d.exe :/resources/model-meerkat.ds3 -o meerkat.fbx
|
|
|
|
- dust3d.exe :/resources/model-meerkat.ds3 -o meerkat.glb
|
|
|
|
- dust3d.exe :/resources/model-mosquito.ds3 -o mosquito.obj
|
|
|
|
- dust3d.exe :/resources/model-mosquito.ds3 -o mosquito.fbx
|
|
|
|
- dust3d.exe :/resources/model-mosquito.ds3 -o mosquito.glb
|
2018-09-28 02:45:39 +00:00
|
|
|
|
2018-04-14 02:36:20 +00:00
|
|
|
artifacts:
|
|
|
|
- path: '*.zip'
|
|
|
|
name: platform_zips
|
2018-09-28 02:45:39 +00:00
|
|
|
|
2018-04-14 02:36:20 +00:00
|
|
|
deploy:
|
2018-12-01 05:26:17 +00:00
|
|
|
- provider: GitHub
|
|
|
|
release: $(TAG)
|
|
|
|
force_update: true
|
|
|
|
auth_token:
|
|
|
|
secure: Rhzhefjk89WN2tDht8vVKYAojGfR23LhDPKPxhQwbT7k3qswSWjmoFoDTpIHNfc0
|
|
|
|
artifact: platform_zips
|
|
|
|
draft: false
|
|
|
|
prerelease: false
|
|
|
|
on:
|
|
|
|
branch: master
|
|
|
|
|
2019-12-31 11:46:33 +00:00
|
|
|
- provider: GitHub
|
|
|
|
release: $(TAG)
|
|
|
|
force_update: true
|
|
|
|
auth_token:
|
|
|
|
secure: Rhzhefjk89WN2tDht8vVKYAojGfR23LhDPKPxhQwbT7k3qswSWjmoFoDTpIHNfc0
|
|
|
|
artifact: platform_zips
|
|
|
|
draft: false
|
|
|
|
prerelease: false
|
|
|
|
on:
|
|
|
|
branch: ci
|
|
|
|
|
2018-12-01 05:26:17 +00:00
|
|
|
- provider: GitHub
|
|
|
|
release: $(TAG)
|
|
|
|
force_update: true
|
|
|
|
auth_token:
|
|
|
|
secure: Rhzhefjk89WN2tDht8vVKYAojGfR23LhDPKPxhQwbT7k3qswSWjmoFoDTpIHNfc0
|
|
|
|
artifact: platform_zips
|
|
|
|
draft: false
|
|
|
|
prerelease: false
|
|
|
|
on:
|
|
|
|
APPVEYOR_REPO_TAG: true
|