Skip to content

Commit c40f01c

Browse files
authored
Merge pull request #1375 from xoviat/patch-1
[appveyor] Use out-of-tree build and cache
2 parents 0639ed1 + c567e34 commit c40f01c

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

appveyor.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ skip_commits:
2323
# Add [av skip] to commit messages
2424
message: /\[av skip\]/
2525

26+
cache:
27+
- '%APPVEYOR_BUILD_FOLDER%\build'
28+
2629
environment:
2730
global:
2831
CONDA_INSTALL_LOCN: C:\\Miniconda36-x64
@@ -44,12 +47,12 @@ install:
4447
- if [%COMPILER%]==[clang-cl] set "CPATH=%CONDA_INSTALL_LOCN%\Library\include;%CPATH%"
4548

4649
before_build:
47-
- echo Running cmake...
48-
- cd c:\projects\OpenBLAS
49-
- if [%COMPILER%]==[cl] cmake -G "Visual Studio 12 Win64" .
50-
- if [%WITH_FORTRAN%]==[no] cmake -G "Ninja" -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_C_COMPILER=clang-cl .
51-
- if [%WITH_FORTRAN%]==[yes] cmake -G "NMake Makefiles" -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_C_COMPILER=clang-cl -DCMAKE_Fortran_COMPILER=flang -DBUILD_WITHOUT_LAPACK=no -DNOFORTRAN=0 .
52-
- if [%DYNAMIC_ARCH%]==[ON] cmake -DDYNAMIC_ARCH=ON .
50+
- ps: if (-Not (Test-Path .\build)) { mkdir build }
51+
- cd build
52+
- if [%COMPILER%]==[cl] cmake -G "Visual Studio 12 Win64" ..
53+
- if [%WITH_FORTRAN%]==[no] cmake -G "Ninja" -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_C_COMPILER=clang-cl ..
54+
- if [%WITH_FORTRAN%]==[yes] cmake -G "NMake Makefiles" -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_C_COMPILER=clang-cl -DCMAKE_Fortran_COMPILER=flang -DBUILD_WITHOUT_LAPACK=no -DNOFORTRAN=0 ..
55+
- if [%DYNAMIC_ARCH%]==[ON] cmake -DDYNAMIC_ARCH=ON ..
5356

5457
build_script:
5558
- cmake --build .

0 commit comments

Comments
 (0)