forked from TileDB-Inc/TileDB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
160 lines (155 loc) · 4.84 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
trigger:
branches:
include:
- dev
- release-*
- refs/tags/*
pr:
branches:
include:
- '*' # must quote since "*" is a YAML reserved character; we want a string
variables:
- name: MANYLINUX_IMAGE
value: quay.io/pypa/manylinux2010_x86_64:2021-11-07-28723f3
stages:
- stage: CI
condition: and(not(startsWith(variables['Build.SourceBranch'], 'refs/tags')), not(startsWith(variables['Build.SourceBranchName'], 'build-')))
variables:
BACKWARDS_COMPATIBILITY_ARRAYS: OFF
jobs:
- job:
timeoutInMinutes: 90
strategy:
matrix:
macOS_azure:
imageName: 'macOS-10.15'
TILEDB_AZURE: ON
TILEDB_SERIALIZATION: ON
CXX: clang++
ARTIFACT_OS: macOS_azure
linux_asan:
imageName: 'ubuntu-20.04'
TILEDB_CI_ASAN: ON
TILEDB_SERIALIZATION: ON
CXX: g++
CC: gcc
pool:
vmImage: $(imageName)
steps:
- template: scripts/azure-linux_mac.yml
- job: linux_manylinux
pool: { vmImage: $(imageName) }
container: ${{ variables.MANYLINUX_IMAGE }}
variables:
imageName: 'ubuntu-20.04'
TILEDB_SERIALIZATION: ON
CXX: g++
CC: gcc
CXXFLAGS: "-lrt"
CFLAGS: "-lrt"
USE_MANYLINUX: ON
steps:
- template: scripts/azure-linux_mac.yml
- stage: Build_Release
condition: or(or(or(startsWith(variables['Build.SourceBranch'], 'refs/tags'), eq(variables['Build.SourceBranchName'], 'dev')), startsWith(variables['Build.SourceBranchName'], 'release-')), startsWith(variables['Build.SourceBranchName'], 'build-'))
variables:
TILEDB_S3: ON
TILEDB_AZURE: ON
TILEDB_GCS: ON
TILEDB_HDFS: ON
TILEDB_STATIC: OFF
TILEDB_SERIALIZATION: ON
TILEDB_FORCE_BUILD_DEPS: ON
MACOSX_DEPLOYMENT_TARGET: 10.14
SUDO: 'sudo'
jobs:
- job:
timeoutInMinutes: 90
strategy:
matrix:
macOS:
imageName: 'macOS-10.15'
CXX: clang++
ARTIFACT_OS: 'macos'
ARTIFACT_ARCH: 'x86_64'
CMAKE_OSX_ARCHITECTURES: "x86_64"
macOS_arm64:
imageName: 'macOS-10.15'
CXX: clang++
ARTIFACT_OS: 'macos'
ARTIFACT_ARCH: 'arm64'
TILEDB_GCS: OFF
TILEDB_WERROR: OFF
CMAKE_OSX_ARCHITECTURES: "arm64"
MACOSX_DEPLOYMENT_TARGET: 11
pool:
vmImage: $(imageName)
steps:
- template: scripts/azure-linux_mac-release.yml
- job: linux_manylinux
pool: { vmImage: 'ubuntu-20.04' }
container: ${{ variables.MANYLINUX_IMAGE }}
strategy:
matrix:
standard:
CXX: g++
CFLAGS: "-lrt"
CXXFLAGS: "-lrt"
ARTIFACT_OS: 'linux'
ARTIFACT_ARCH: "x86_64"
TILEDB_AVX2: ON
SUDO: ''
noavx2:
CXX: g++
CFLAGS: "-lrt"
CXXFLAGS: "-lrt"
ARTIFACT_OS: 'linux'
ARTIFACT_ARCH: "x86_64-noavx2"
TILEDB_AVX2: OFF
SUDO: ''
steps:
- template: scripts/azure-linux_mac-release.yml
- job: Windows
strategy:
matrix:
VS2019:
imageName: 'windows-2019'
# Only S3 variable is currently supported in boostrap powershell
TILEDB_GCS: OFF
TILEDB_HDFS: OFF
ARTIFACT_OS: 'windows'
ARTIFACT_ARCH: 'x86_64'
pool:
vmImage: $(imageName)
steps:
- template: scripts/azure-windows-release.yml
# NOTE: this section cannot be conditional because `Build.Repository.Name` is an agent-scoped variable.
- stage: Github_Release
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags')
pool:
vmImage: 'ubuntu-latest'
jobs:
- job:
steps:
# First download artifacts
- task: DownloadBuildArtifacts@0
inputs:
downloadType: 'specific'
- script: |
echo $sourceVersion
commitHash=${sourceVersion:0:7}
echo $commitHash
echo "##vso[task.setvariable variable=commitHash]$commitHash" ## Set variable for using in other tasks.
env: { sourceVersion: $(Build.SourceVersion) }
displayName: Git Hash 7-digit
- task: GithubRelease@0
condition: succeeded() # only run this job if the build step succeeded
displayName: 'Add artifacts to GitHub Release'
inputs:
gitHubConnection: TileDB-Inc-Release
repositoryName: $(Build.Repository.Name)
addChangeLog: false
action: edit
tag: $(Build.SourceBranchName)
assets: |
$(Build.ArtifactStagingDirectory)/built-libs/*