3
3
pool : Linux-CPU
4
4
steps :
5
5
- template : templates/set-test-data-variables-step.yml
6
+ - template : templates/set-version-number-variables-step.yml
6
7
7
8
- script : ' tools/ci_build/github/linux/run_dockerbuild.sh -o ubuntu16.04 -d cpu -r $(Build.BinariesDirectory) -x " --test_data_url $(TestDataUrl) --test_data_checksum $(TestDataChecksum)"'
8
9
displayName : ' Build and Test Linux on Docker'
9
10
- template : templates/c-api-artifacts-package-and-publish-steps-posix.yml
10
11
parameters :
11
12
buildConfig : ' Release'
12
- artifactName : ' onnxruntime-linux-x64'
13
+ artifactName : ' onnxruntime-linux-x64-$(OnnxRuntimeVersion) '
13
14
libraryName : ' libonnxruntime.so'
15
+ commitId : $(OnnxRuntimeGitCommitHash)
14
16
- template : templates/clean-agent-build-directory-step.yml
15
17
16
18
17
19
- job : Linux_C_API_Packaging_CPU_x86
18
20
pool : Linux-CPU
19
21
steps :
20
22
- template : templates/set-test-data-variables-step.yml
23
+ - template : templates/set-version-number-variables-step.yml
21
24
22
25
- script : ' tools/ci_build/github/linux/run_dockerbuild.sh -o ubuntu16.04 -d cpu -r $(Build.BinariesDirectory) -a x86 -x " --x86 --test_data_url $(TestDataUrl) --test_data_checksum $(TestDataChecksum)"'
23
26
displayName : ' Build and Test Linux on Docker'
24
27
- template : templates/c-api-artifacts-package-and-publish-steps-posix.yml
25
28
parameters :
26
29
buildConfig : ' Release'
27
- artifactName : ' onnxruntime-linux-x86'
30
+ artifactName : ' onnxruntime-linux-x86-$(OnnxRuntimeVersion) '
28
31
libraryName : ' libonnxruntime.so'
32
+ commitId : $(OnnxRuntimeGitCommitHash)
29
33
- template : templates/clean-agent-build-directory-step.yml
30
34
31
35
32
36
- job : Linux_C_API_Packaging_GPU_x64
33
37
pool : Linux-GPU
34
38
steps :
35
39
- template : templates/set-test-data-variables-step.yml
40
+ - template : templates/set-version-number-variables-step.yml
36
41
37
42
- script : ' tools/ci_build/github/linux/run_dockerbuild.sh -o ubuntu16.04 -d gpu -c cuda9.1-cudnn7.1 -r $(Build.BinariesDirectory) -x " --test_data_url $(TestDataUrl) --test_data_checksum $(TestDataChecksum)"'
38
43
displayName : ' Build and Test Linux on Docker'
39
44
- template : templates/c-api-artifacts-package-and-publish-steps-posix.yml
40
45
parameters :
41
46
buildConfig : ' Release'
42
- artifactName : ' onnxruntime-linux-x64-gpu'
47
+ artifactName : ' onnxruntime-linux-x64-gpu-$(OnnxRuntimeVersion) '
43
48
libraryName : ' libonnxruntime.so'
49
+ commitId : $(OnnxRuntimeGitCommitHash)
44
50
- template : templates/clean-agent-build-directory-step.yml
45
51
46
52
47
53
- job : MacOS_C_API_Packaging_CPU_x64
48
54
pool :
49
55
vmImage : ' macOS-10.13'
50
56
steps :
57
+
51
58
- template : templates/set-test-data-variables-step.yml
59
+ - template : templates/set-version-number-variables-step.yml
60
+
52
61
- script : |
53
62
sudo xcode-select --switch /Applications/Xcode_10.app/Contents/Developer
54
63
python3 $(Build.SourcesDirectory)/tools/ci_build/build.py --use_openmp --build_dir $(Build.BinariesDirectory) --skip_submodule_sync --parallel --build_shared_lib --config RelWithDebInfo --enable_onnx_tests --test_data_url $(TestDataUrl) --test_data_checksum $(TestDataChecksum)
57
66
- template : templates/c-api-artifacts-package-and-publish-steps-posix.yml
58
67
parameters :
59
68
buildConfig : ' RelWithDebInfo'
60
- artifactName : ' onnxruntime-osx-x64'
69
+ artifactName : ' onnxruntime-osx-x64-$(OnnxRuntimeVersion) '
61
70
libraryName : ' libonnxruntime.dylib'
62
-
71
+ commitId : $(OnnxRuntimeGitCommitHash)
72
+
63
73
- template : templates/clean-agent-build-directory-step.yml
64
74
65
75
72
82
73
83
steps :
74
84
- template : templates/set-test-data-variables-step.yml
85
+ - template : templates/set-version-number-variables-step.yml
75
86
76
87
- template : templates/windows-build-tools-setup-steps.yml
77
88
parameters :
89
100
- template : templates/c-api-artifacts-package-and-publish-steps-windows.yml
90
101
parameters :
91
102
buildConfig : $(buildConfig)
92
- artifactName : ' onnxruntime-win-$(buildArch)'
93
-
103
+ artifactName : ' onnxruntime-win-$(buildArch)-$(OnnxRuntimeVersion) '
104
+ commitId : $(OnnxRuntimeGitCommitHash)
94
105
- template : templates/clean-agent-build-directory-step.yml
95
106
96
107
@@ -103,6 +114,7 @@ jobs:
103
114
104
115
steps :
105
116
- template : templates/set-test-data-variables-step.yml
117
+ - template : templates/set-version-number-variables-step.yml
106
118
107
119
- template : templates/windows-build-tools-setup-steps.yml
108
120
parameters :
@@ -120,8 +132,8 @@ jobs:
120
132
- template : templates/c-api-artifacts-package-and-publish-steps-windows.yml
121
133
parameters :
122
134
buildConfig : $(buildConfig)
123
- artifactName : ' onnxruntime-win-$(buildArch)'
124
-
135
+ artifactName : ' onnxruntime-win-$(buildArch)-$(OnnxRuntimeVersion) '
136
+ commitId : $(OnnxRuntimeGitCommitHash)
125
137
- template : templates/clean-agent-build-directory-step.yml
126
138
127
139
@@ -134,6 +146,7 @@ jobs:
134
146
135
147
steps :
136
148
- template : templates/set-test-data-variables-step.yml
149
+ - template : templates/set-version-number-variables-step.yml
137
150
138
151
- task : CmdLine@2
139
152
displayName : ' Set CUDA 9.1 path'
@@ -167,7 +180,8 @@ jobs:
167
180
- template : templates/c-api-artifacts-package-and-publish-steps-windows.yml
168
181
parameters :
169
182
buildConfig : $(buildConfig)
170
- artifactName : ' onnxruntime-win-gpu-$(buildArch)'
183
+ artifactName : ' onnxruntime-win-$(buildArch)-gpu-$(OnnxRuntimeVersion)'
184
+ commitId : $(OnnxRuntimeGitCommitHash)
171
185
172
186
- task : PowerShell@2
173
187
displayName : ' Clean up Cuda Path 9.1'
0 commit comments