forked from Bforartists/Bforartists
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
63 lines (58 loc) · 1.96 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
version: '{build}'
branches:
only:
- master
# clone_folder: C:/projects/bfa
image:
- Visual Studio 2015
- Visual Studio 2017
# - Ubuntu
configuration: Release
platform: x64
environment:
APPVEYOR_SAVE_CACHE_ON_ERROR: true
DOCKER_IMAGE: ubuntu:16.04
matrix:
- TARGET_PLATFORM: x64
- TARGET_PLATFORM: x86
matrix:
fast_finish: true
exclude:
- image: Ubuntu
TARGET_PLATFORM: x86
# skip unsupported combinations
init:
- ps: |
If ($isLinux) {
$env:APPVEYOR_CACHE_SKIP_RESTORE = "true"
$env:APPVEYOR_CACHE_SKIP_SAVE = "true"
}
- cmd: |
set arch=
if "%TARGET_PLATFORM%"=="x64" ( set arch= Win64)
If "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" ( set generator="Visual Studio 15 2017%arch%" )
If "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" ( set generator="Visual Studio 14 2015%arch%" )
If "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Ubuntu" ( set generator="Unix Makefiles" )
echo %generator%
- sh: |
docker pull $DOCKER_IMAGE
install:
- sh: cmake
build_script:
- cmd: |
if "%TARGET_PLATFORM%"=="x86" (svn checkout https://svn.blender.org/svnroot/bf-blender/trunk/lib/windows_vc14 ../lib/windows_vc14)
if "%TARGET_PLATFORM%"=="x64" (svn checkout https://svn.blender.org/svnroot/bf-blender/trunk/lib/win64_vc14 ../lib/win64_vc14)
mkdir build
cd build
cmake --version
cmake . -G %generator% -DCMAKE_BUILD_TYPE=Release ..
cmake --build . --target PACKAGE
- sh: >-
docker run --rm -v $(pwd):/src $DOCKER_IMAGE /bin/bash -c "
mkdir build && cd build;
apt update && apt upgrade -y && apt install -y git cmake sudo;
useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo;
. /src/build_files/build_environment/install_deps.sh --with-all --no-confirm;
echo Building with Unix Makefiles;
cmake . -G'Unix Makefiles' -DCMAKE_BUILD_TYPE=Release /src;
cmake --build .;"