forked from flang-compiler/flang
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.appveyor.yml
53 lines (42 loc) · 1.8 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
branches:
only:
- master
- windows
- windows-rebased
environment:
global:
CONDA_INSTALL_LOCN: C:\\Miniconda36-x64
APPVEYOR_SAVE_CACHE_ON_FAILURE: true
cache:
- '%CONDA_INSTALL_LOCN%\pkgs'
os: Visual Studio 2017
platform:
- x64
install:
# Add path, activate `conda` and update conda.
- cmd: call %CONDA_INSTALL_LOCN%\Scripts\activate.bat
# Add our channels.
- cmd: conda config --add channels defaults
- cmd: conda config --add channels conda-forge
- cmd: conda install --yes llvmdev clangdev flang-meta cmake
- cmd: conda install --yes -c isuruf kitware-ninja
build_script:
- ps: mkdir build
- cd build
- set "PATH=%cd%\bin;%PATH%"
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
- cmake -G "Ninja" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX% -DFLANG_INCLUDE_TESTS=ON -DFLANG_TEST_VERBOSE_MODE=ON -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_Fortran_COMPILER=flang -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Release -DLLVM_INCLUDE_TESTS=ON -DLLVM_MAIN_SRC_DIR=C:\llvm_src ..
- ps: |
Push-AppveyorArtifact .\CMakeFiles\CMakeOutput.log
Push-AppveyorArtifact .\CMakeFiles\CMakeError.log
- ps: |
cmake --build . 2>&1 | Out-File build_output.txt
if($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode ) }
Push-AppveyorArtifact .\build_output.txt
Get-Content .\build_output.txt -Tail 500
- ps: Compress-Archive -Path C:\projects\flang\build\bin -DestinationPath C:\Projects\flang\bin.zip
- ps: Push-AppveyorArtifact C:\Projects\flang\bin.zip
- ps: Compress-Archive -Path C:\projects\flang\build\lib -DestinationPath C:\Projects\flang\lib.zip
- ps: Push-AppveyorArtifact C:\Projects\flang\lib.zip
test_script:
- cmd: cmake --build . --target install