source: trunk/appveyor.yml @ 2990

Last change on this file since 2990 was 2990, checked in by unxusr, 4 months ago

additional win64 libraries (suitesparce) in windows package

File size: 10.1 KB
Line 
1#init:
2#  - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
3
4platform:
5  - x64
6
7environment:
8  global:
9    BINTRAY_API:
10      secure: a9n4jf90wlFCdaYa6fOmYxsF97ur2dnK8Ys3gn5R90JBzTDq6cD2GlEwmmts75mq
11    BINTRAY_USERNAME: tkralphs
12  matrix:
13    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
14      ARCH: x86_64-w64-mingw32
15      HOST_ARCH_ARG: --host=x86_64-w64-mingw32 --enable-cbc-parallel
16      CXXFLAGS:
17      CFLAGS:
18      TESTS: main
19      ADD_PATH: /mingw64/bin
20    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
21      ARCH: i686-w64-mingw32
22      HOST_ARCH_ARG: --host=i686-w64-mingw32 --enable-cbc-parallel
23      CXXFLAGS:
24      CFLAGS:
25      TESTS: main
26      ADD_PATH: /mingw32/bin
27    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
28      ARCH: win64-msvc14-md
29      HOST_ARCH_ARG: --enable-msvc
30      CXXFLAGS:
31      CFLAGS:
32      TESTS: main
33      ADD_PATH: /mingw64/bin
34    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
35      ARCH: win64-msvc15-md
36      HOST_ARCH_ARG: --enable-msvc
37      CXXFLAGS:
38      CFLAGS:
39      TESTS: main
40      ADD_PATH: /mingw64/bin
41    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
42      ARCH: win64-msvc16-md
43      HOST_ARCH_ARG: --enable-msvc
44      CXXFLAGS:
45      CFLAGS:
46      TESTS: main
47      ADD_PATH: /mingw64/bin
48    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
49      ARCH: win64-msvc14-mt
50      HOST_ARCH_ARG: --enable-msvc --disable-shared
51      CXXFLAGS: -nologo -DNDEBUG -O2 -MT
52      CFLAGS: -nologo -DNDEBUG -O2 -MT
53      TESTS: main
54      ADD_PATH: /mingw64/bin
55    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
56      ARCH: win64-msvc15-mt
57      HOST_ARCH_ARG: --enable-msvc --disable-shared
58      CXXFLAGS: -nologo -DNDEBUG -O2 -MT
59      CFLAGS: -nologo -DNDEBUG -O2 -MT
60      TESTS: main
61      ADD_PATH: /mingw64/bin
62    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
63      ARCH: win64-msvc16-mt
64      HOST_ARCH_ARG: --enable-msvc --disable-shared
65      CXXFLAGS: -nologo -DNDEBUG -O2 -MT
66      CFLAGS: -nologo -DNDEBUG -O2 -MT
67      TESTS: main
68      ADD_PATH: /mingw64/bin
69    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
70      ARCH: win64-msvc14-mdd
71      HOST_ARCH_ARG: --enable-msvc --enable-debug
72      CXXFLAGS:
73      CFLAGS:
74      TESTS: none
75      ADD_PATH: /mingw64/bin
76    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
77      ARCH: win64-msvc15-mdd
78      HOST_ARCH_ARG: --enable-msvc --enable-debug
79      CXXFLAGS:
80      CFLAGS:
81      TESTS: none
82      ADD_PATH: /mingw64/bin
83    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
84      ARCH: win64-msvc16-mdd
85      HOST_ARCH_ARG: --enable-msvc --enable-debug
86      CXXFLAGS:
87      CFLAGS:
88      TESTS: none
89      ADD_PATH: /mingw64/bin
90    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
91      ARCH: win64-msvc14-mtd
92      HOST_ARCH_ARG: --enable-msvc --disable-shared
93      CXXFLAGS: -nologo -EHs -Z7 -MTd
94      CFLAGS: -nologo -EHs -Z7 -MTd
95      TESTS: none
96      ADD_PATH: /mingw64/bin
97    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
98      ARCH: win64-msvc15-mtd
99      HOST_ARCH_ARG: --enable-msvc --disable-shared
100      CXXFLAGS: -nologo -EHs -Z7 -MTd
101      CFLAGS: -nologo -EHs -Z7 -MTd
102      TESTS: none
103      ADD_PATH: /mingw64/bin
104    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
105      ARCH: win64-msvc16-mtd
106      HOST_ARCH_ARG: --enable-msvc --disable-shared
107      CXXFLAGS: -nologo -EHs -Z7 -MTd
108      CFLAGS: -nologo -EHs -Z7 -MTd
109      TESTS: none
110      ADD_PATH: /mingw64/bin
111
112install:
113  - for /f "delims=" %%i in ('C:\msys64\usr\bin\bash -lc "if [ $APPVEYOR_REPO_BRANCH = 'master' ]; then echo 'master'; else echo $APPVEYOR_REPO_BRANCH | cut -d "/" -f 2; fi"') do set VERSION=%%i
114  - IF %ARCH%==win64-msvc14-md (CALL C:\"Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64)
115  - IF %ARCH%==win64-msvc15-md (CALL C:\"Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat")
116  - IF %ARCH%==win64-msvc16-md (CALL C:\"Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat")
117  - IF %ARCH%==win64-msvc14-mdd (CALL C:\"Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64)
118  - IF %ARCH%==win64-msvc15-mdd (CALL C:\"Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat")
119  - IF %ARCH%==win64-msvc16-mdd (CALL C:\"Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat")
120  - IF %ARCH%==win64-msvc14-mt (CALL C:\"Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64)
121  - IF %ARCH%==win64-msvc15-mt (CALL C:\"Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat")
122  - IF %ARCH%==win64-msvc16-mt (CALL C:\"Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat")
123  - IF %ARCH%==win64-msvc14-mtd (CALL C:\"Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64)
124  - IF %ARCH%==win64-msvc15-mtd (CALL C:\"Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat")
125  - IF %ARCH%==win64-msvc16-mtd (CALL C:\"Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat")
126  - IF %ARCH%==x86_64-w64-mingw32 (CALL C:\msys64\usr\bin\bash -lc "pacman -S mingw-w64-x86_64-lapack mingw-w64-x86_64-winpthreads-git mingw-w64-x86_64-readline mingw-w64-x86_64-suitesparse --noconfirm")
127  - IF %ARCH%==i686-w64-mingw32 (CALL C:\msys64\usr\bin\bash -lc "pacman -S mingw-w64-i686-lapack mingw-w64-i686-winpthreads-git mingw-w64-i686-readline mingw-w64-i686-suitesparse --noconfirm") 
128  - C:\msys64\usr\bin\bash -lc ""
129
130build_script:
131  - C:\msys64\usr\bin\bash -lc "cd C:\projects; ln -s %APPVEYOR_PROJECT_SLUG% %APPVEYOR_PROJECT_NAME%; wget https://raw.githubusercontent.com/coin-or/coinbrew/master/coinbrew"
132  - C:\msys64\usr\bin\bash -lc "cd C:\projects; ./coinbrew fetch https://github.com/%APPVEYOR_REPO_NAME%:%APPVEYOR_REPO_BRANCH% --no-prompt --skip='ThirdParty/Metis ThirdParty/Mumps' --skip-update"
133  - C:\msys64\usr\bin\bash -lc "cd C:\projects; export PATH=$ADD_PATH:$PATH; ./coinbrew build %APPVEYOR_PROJECT_NAME% --no-prompt --skip='ThirdParty/Metis ThirdParty/Mumps' --build=x86_64-w64-mingw32 $HOST_ARCH_ARG --verbosity 2 --tests $TESTS --enable-relocatable"
134
135after_build:
136  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\libblas.dll C:\projects\dist\bin)
137  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\liblapack.dll C:\projects\dist\bin)
138  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\libgfortran-5.dll C:\projects\dist\bin)
139  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\libgcc_s_seh-1.dll C:\projects\dist\bin)
140  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\libbz2-1.dll C:\projects\dist\bin)
141  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\libwinpthread-1.dll C:\projects\dist\bin)
142  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\libstdc++-6.dll C:\projects\dist\bin)
143  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\libquadmath-0.dll C:\projects\dist\bin)
144  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\libreadline8.dll C:\projects\dist\bin)
145  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\libtermcap-0.dll C:\projects\dist\bin)
146  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\zlib1.dll C:\projects\dist\bin)
147  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\libcholmod.dll C:\projects\dist\bin)
148  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\libcolamd.dll C:\projects\dist\bin)
149  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\libamd.dll C:\projects\dist\bin)
150  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\libcamd.dll C:\projects\dist\bin)
151  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\libmetis.dll C:\projects\dist\bin)
152  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\libgomp-1.dll C:\projects\dist\bin)
153  - IF %ARCH%==x86_64-w64-mingw32 (cp C:\msys64\mingw64\bin\libsuitesparseconfig.dll C:\projects\dist\bin)
154  - IF %ARCH%==i686-w64-mingw32 (cp C:\msys64\mingw32\bin\libblas.dll C:\projects\dist\bin)
155  - IF %ARCH%==i686-w64-mingw32 (cp C:\msys64\mingw32\bin\libopenblas.dll C:\projects\dist\bin)
156  - IF %ARCH%==i686-w64-mingw32 (cp C:\msys64\mingw32\bin\liblapack.dll C:\projects\dist\bin)
157  - IF %ARCH%==i686-w64-mingw32 (cp C:\msys64\mingw32\bin\libgfortran-5.dll C:\projects\dist\bin)
158  - IF %ARCH%==i686-w64-mingw32 (cp C:\msys64\mingw32\bin\libgcc_s_dw2-1.dll C:\projects\dist\bin)
159  - IF %ARCH%==i686-w64-mingw32 (cp C:\msys64\mingw32\bin\libbz2-1.dll C:\projects\dist\bin)
160  - IF %ARCH%==i686-w64-mingw32 (cp C:\msys64\mingw32\bin\libwinpthread-1.dll C:\projects\dist\bin)
161  - IF %ARCH%==i686-w64-mingw32 (cp C:\msys64\mingw32\bin\libstdc++-6.dll C:\projects\dist\bin)
162  - IF %ARCH%==i686-w64-mingw32 (cp C:\msys64\mingw32\bin\libquadmath-0.dll C:\projects\dist\bin)
163  - IF %ARCH%==i686-w64-mingw32 (cp C:\msys64\mingw32\bin\libreadline8.dll C:\projects\dist\bin)
164  - IF %ARCH%==i686-w64-mingw32 (cp C:\msys64\mingw32\bin\libtermcap-0.dll C:\projects\dist\bin)
165  - IF %ARCH%==i686-w64-mingw32 (cp C:\msys64\mingw32\bin\zlib1.dll C:\projects\dist\bin)
166  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip C:\projects\dist\bin
167  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip C:\projects\dist\include
168  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip C:\projects\dist\lib
169  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip C:\projects\dist\share
170  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip C:\projects\%APPVEYOR_PROJECT_NAME%\README.md
171  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip C:\projects\%APPVEYOR_PROJECT_NAME%\LICENSE
172  - 7z a %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip C:\projects\%APPVEYOR_PROJECT_NAME%\AUTHORS
173  - curl -T %APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip -utkralphs:%BINTRAY_API% -H "X-Bintray-Publish:1" -H "X-Bintray-Override:1" https://api.bintray.com/content/coin-or/download/%APPVEYOR_PROJECT_NAME%/%VERSION%/%APPVEYOR_PROJECT_NAME%-%VERSION%-%ARCH%.zip
174
175#on_finish:
176#  - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
177
Note: See TracBrowser for help on using the repository browser.