forked from cmuparlay/parlaylib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
125 lines (110 loc) · 4.44 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
os: Visual Studio 2019
platform: x64
environment:
matrix:
- job_name: Microsoft Visual C++
compiler: msvc-16-seh
generator: "Visual Studio 16 2019"
build_system: cmake
- job_name: MinGW
compiler: gcc-8.1.0-posix
build_system: cmake
generator: "MinGW Makefiles"
cxx_path: 'C:\mingw-w64\i686-8.1.0-posix-dwarf-rt_v6-rev0\mingw32\bin'
- job_name: WSL GCC
- job_name: WSL Clang
- job_name: Cygwin GCC
CYG_ROOT: C:\cygwin_parlay
CYG_BASH: C:\cygwin_parlay\bin\bash
CYG_MIRROR: http://mirrors.kernel.org/sourceware/cygwin/
CYG_PACKAGES: git,make,gcc-core,gcc-g++,cmake,clang,libiconv-devel,cygwin32-libiconv-1.14-2
- job_name: Cygwin Clang
CYG_ROOT: C:\cygwin_parlay
CYG_BASH: C:\cygwin_parlay\bin\bash
CYG_MIRROR: http://mirrors.kernel.org/sourceware/cygwin/
CYG_PACKAGES: git,make,gcc-core,gcc-g++,cmake,clang,libiconv-devel,cygwin32-libiconv-1.14-2
for:
-
matrix:
only:
- job_name: Microsoft Visual C++
build_script:
- ps: |
md build
cd build
cmake -G $env:generator -A x64 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS_DEBUG=" /bigobj " -DPARLAY_TEST=On ..
cmake --build .
ctest -C Debug --no-tests=error
-
matrix:
only:
- job_name: MinGW
build_script:
- ps: |
md build
cd build
$env:path = $env:path.replace("C:\Program Files\Git\usr\bin;", "")
$env:path += ";$env:cxx_path"
cmake -G $env:generator -DCMAKE_BUILD_TYPE=Debug -DPARLAY_TEST=On ..
cmake --build .
ctest -C Debug --no-tests=error
-
matrix:
only:
- job_name: Cygwin GCC
install:
- ps: 'Start-FileDownload "https://cygwin.com/setup-x86_64.exe" -FileName "setup-x86_64.exe"'
- 'setup-x86_64.exe --quiet-mode --no-shortcuts --only-site --root "%CYG_ROOT%" --site "%CYG_MIRROR%" --local-package-dir "%CYG_ROOT%\var\cache\setup" --packages "%CYG_PACKAGES%"'
build_script:
- '%CYG_BASH% -lc "cd $APPVEYOR_BUILD_FOLDER; mkdir build"'
- '%CYG_BASH% -lc "cd $APPVEYOR_BUILD_FOLDER/build; CXX=g++ cmake -DCMAKE_BUILD_TYPE=Debug -DPARLAY_TEST=On .."'
- '%CYG_BASH% -lc "cd $APPVEYOR_BUILD_FOLDER/build; make"'
- '%CYG_BASH% -lc "cd $APPVEYOR_BUILD_FOLDER/build; ctest -C Debug --no-tests=error"'
-
matrix:
only:
- job_name: Cygwin Clang
install:
- ps: 'Start-FileDownload "https://cygwin.com/setup-x86_64.exe" -FileName "setup-x86_64.exe"'
- 'setup-x86_64.exe --quiet-mode --no-shortcuts --only-site --root "%CYG_ROOT%" --site "%CYG_MIRROR%" --local-package-dir "%CYG_ROOT%\var\cache\setup" --packages "%CYG_PACKAGES%"'
build_script:
- '%CYG_BASH% -lc "cd $APPVEYOR_BUILD_FOLDER; mkdir build"'
- '%CYG_BASH% -lc "cd $APPVEYOR_BUILD_FOLDER/build; CXX=clang++ cmake -DCMAKE_BUILD_TYPE=Debug -DPARLAY_TEST=On .."'
- '%CYG_BASH% -lc "cd $APPVEYOR_BUILD_FOLDER/build; make"'
- '%CYG_BASH% -lc "cd $APPVEYOR_BUILD_FOLDER/build; ctest -C Debug --no-tests=error"'
-
matrix:
only:
- job_name: WSL GCC
install:
- ps: |
wsl sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
wsl sudo apt-get -qq update
wsl sudo apt-get -y install gcc-9 g++-9 make
wsl wget --quiet https://github.com/Kitware/CMake/releases/download/v3.18.2/cmake-3.18.2-Linux-x86_64.tar.gz
wsl tar -xf cmake-3.18.2-Linux-x86_64.tar.gz
build_script:
- ps: |
md build
cd build
wsl CC=gcc-9 CXX=g++-9 ../cmake-3.18.2-Linux-x86_64/bin/cmake -DCMAKE_BUILD_TYPE=Debug -DPARLAY_TEST=On ..
wsl make
wsl ../cmake-3.18.2-Linux-x86_64/bin/ctest -C Debug --no-tests=error
-
matrix:
only:
- job_name: WSL Clang
install:
- ps: |
wsl sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
wsl sudo apt-get -qq update
wsl sudo apt-get -y install gcc-9 g++-9 clang-10 make
wsl wget --quiet https://github.com/Kitware/CMake/releases/download/v3.18.2/cmake-3.18.2-Linux-x86_64.tar.gz
wsl tar -xf cmake-3.18.2-Linux-x86_64.tar.gz
build_script:
- ps: |
md build
cd build
wsl CC=clang-10 CXX=clang++-10 ../cmake-3.18.2-Linux-x86_64/bin/cmake -DCMAKE_BUILD_TYPE=Debug -DPARLAY_TEST=On ..
wsl make
wsl ../cmake-3.18.2-Linux-x86_64/bin/ctest -C Debug --no-tests=error