forked from alicevision/AliceVision
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
65 lines (55 loc) · 2 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
image: Visual Studio 2019
configuration: Release
branches:
only:
- master
- develop # PRs are built
# environment:
# APPVEYOR_SAVE_CACHE_ON_ERROR: true
install:
- git submodule update --init --recursive
- cmd: >-
call cudaInstallAppveyor.cmd
- cd c:\tools\vcpkg\
- git fetch https://github.com/aliceVision/vcpkg.git alicevision_master:alicevision_master
- git checkout alicevision_master
- .\bootstrap-vcpkg.bat
- vcpkg upgrade --no-dry-run
- vcpkg list
- vcpkg install
boost-algorithm boost-accumulators boost-atomic boost-container boost-date-time boost-exception boost-filesystem boost-graph boost-log boost-program-options boost-property-tree boost-ptr-container boost-regex boost-serialization boost-system boost-test boost-thread
openexr
openimageio[libraw]
alembic
geogram
eigen3
ceres[suitesparse]
cuda
--triplet x64-windows
--recurse
- vcpkg list
before_build:
- cd %APPVEYOR_BUILD_FOLDER%
- md build
- cd build
- cmake .. -A x64
-DCMAKE_BUILD_TYPE=%CONFIGURATION%
-DALICEVISION_USE_INTERNAL_CERES:BOOL=OFF
-DALICEVISION_USE_CUDA:BOOL=ON
-DALICEVISION_BUILD_EXAMPLES:BOOL=ON
-DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake
- ls -l
build:
project: build\aliceVision.sln
verbosity: minimal
#comment the above and uncomment the following to just build the dependencies
# build_script:
# - echo "Dependencies installed."
cache:
c:\tools\vcpkg\installed\
# 7z Win64 build and push build to artifacts, include Licenses and Copyright information
after_build:
- set BUILD_ARCHIVE=%APPVEYOR_BUILD_FOLDER%\build\alicevisionWin64snapshot-%APPVEYOR_PULL_REQUEST_HEAD_COMMIT%.zip
- 7z a %BUILD_ARCHIVE% %APPVEYOR_BUILD_FOLDER%\build\Windows-AMD64\Release\* %APPVEYOR_BUILD_FOLDER%\LICENSE* %APPVEYOR_BUILD_FOLDER%\COPYING.md
artifacts:
- path: 'build\*.zip'