-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
82 lines (71 loc) · 2.32 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
platform:
#- x86
- x64
configuration: Release
environment:
matrix:
- job_name: Visual Studio 2017
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
#- job_name: Visual Studio 2019
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
- job_name: Ubuntu 18 and GCC
APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu1804
- job_name: Ubuntu 18 and Clang
APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu1804
for:
# Linux Clang
- matrix:
only:
- job_name: Ubuntu 18 and Clang
environment:
CC: clang
CXX: clang++
clone_folder: ~/lmath
init:
- sh: if [ "$cmake_arch" = "x86" ]; then export extra_cmake_flags=-DCMAKE_CXX_FLAGS=-m32; sudo apt-get install -y g++-multilib; fi;
build_script:
- mkdir build; cd build
- cmake -DCMAKE_BUILD_TYPE=Release DCMAKE_CXX_STANDARD=17 $extra_cmake_flags ..
- make -j2
# Linux GCC
- matrix:
only:
- job_name: Ubuntu 18 and GCC
environment:
GCC_VERSION: 9
clone_folder: ~/lmath
init:
- sh: if [ "$cmake_arch" = "x86" ]; then export extra_cmake_flags=-DCMAKE_CXX_FLAGS=-m32; sudo apt-get install -y g++-multilib; fi;
build_script:
- mkdir build; cd build
- cmake -DCMAKE_BUILD_TYPE=Release DCMAKE_CXX_STANDARD=17 $extra_cmake_flags ..
- make -j2
# Visual studio
- matrix:
only:
- job_name: Visual Studio 2017
- job_name: Visual Studio 2019
clone_folder: c:\lmath
init:
- cmd: |-
set arch=
echo Platform is %PLATFORM%
if "%PLATFORM%"=="x64" ( set arch= Win64)
echo %arch%
echo %APPVEYOR_BUILD_WORKER_IMAGE%
if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" ( set generator="Visual Studio 15 2017%arch%" )
if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2019" ( set generator="Visual Studio 16 2019" )
if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2019" ( set cmake_architecture="-A %PLATFORM%" )
echo %generator%
before_build:
- cmd: |-
c:
cd c:\lmath
mkdir build
cd build
cmake --version
cmake .. -G %generator% %cmake_architecture%
build:
project: c:\lmath\build\lmath.sln
verbosity: minimal
parallel: true