forked from LLNL/RAJA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
104 lines (104 loc) · 2.61 KB
/
azure-pipelines.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
jobs:
- job: Windows
strategy:
matrix:
shared:
SHARED_ARGS: '-DBUILD_SHARED_LIBS=On'
static:
SHARED_ARGS: '-DBUILD_SHARED_LIBS=Off'
pool:
vmImage: 'windows-2019'
variables:
CMAKE_EXTRA_FLAGS: '-DRAJA_ENABLE_WARNINGS_AS_ERRORS=Off -DBLT_CXX_STD="" -DCMAKE_CXX_STANDARD=17'
steps:
- checkout: self
clean: boolean
submodules: recursive
- task: CMake@1
inputs:
workingDir: 'build'
cmakeArgs: '$(CMAKE_EXTRA_FLAGS) $(SHARED_ARGS) ../'
- task: CMake@1
inputs:
workingDir: 'build'
cmakeArgs: '--build . --config Release --verbose -j 4'
- task: CmdLine@2
inputs:
script: 'ctest.exe -T test -C Release'
workingDirectory: 'build'
- task: PublishTestResults@2
inputs:
testResultsFormat: 'cTest'
testResultsFiles: '**/Test.xml'
- job: Docker
timeoutInMinutes: 360
strategy:
matrix:
gcc7.3.0:
docker_target: gcc7.3.0
gcc8.1.0:
docker_target: gcc8.1.0
gcc9.4.0:
docker_target: gcc9.4.0
gcc11.2.0:
docker_target: gcc11.2.0
clang11.0.0:
docker_target: clang11.0.0
clang11.0.0-debug:
docker_target: clang11.0.0-debug
clang13.0.0:
docker_target: clang13.0.0
## nvcc10.1.243:
## docker_target: nvcc10.1.243
## nvcc11.1.1:
## docker_target: nvcc11.1.1
## nvcc11.1.1-debug:
## docker_target: nvcc11.1.1-debug
## hip5.1.3:
## docker_target: hip5.1.3
sycl:
docker_target: sycl
pool:
vmImage: 'ubuntu-latest'
variables:
DOCKER_BUILDKIT: '1'
CMAKE_EXTRA_FLAGS: '-DENABLE_DEVELOPER_BENCHMARKS=On -DENABLE_DEVELOPER_DEFAULTS=On -DCMAKE_CXX_STANDARD=14'
steps:
- checkout: self
clean: boolean
submodules: recursive
- task: Docker@1
inputs:
command: build
dockerFile: 'Dockerfile'
arguments: '--target $(docker_target)'
- task: PublishTestResults@2
inputs:
testResultsFormat: 'cTest'
testResultsFiles: '**/Test.xml'
- job: Mac
pool:
vmImage: 'macOS-latest'
variables:
CMAKE_EXTRA_FLAGS: '-DENABLE_OPENMP=Off'
steps:
- checkout: self
clean: boolean
submodules: recursive
- task: CMake@1
inputs:
workingDir: 'build'
cmakeArgs: '$(CMAKE_EXTRA_FLAGS) ../'
- script: |
cd build
make -j 4
displayName: 'OSX Build'
condition: eq( variables['Agent.OS'], 'Darwin')
- script: |
cd build
ctest -T test --output-on-failure
displayName: 'OSX Test'
- task: PublishTestResults@2
inputs:
testResultsFormat: 'cTest'
testResultsFiles: '**/Test.xml'