1
+ jobs :
2
+ - job : " Build"
3
+ displayName : " Build python worker"
4
+
5
+ templateContext :
6
+ outputParentDirectory : $(Build.ArtifactStagingDirectory)
7
+ outputs :
8
+ - output : pipelineArtifact
9
+ targetPath : $(Build.ArtifactStagingDirectory)
10
+ artifactName : " drop"
11
+ - output : nuget
12
+ condition : and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/dev'), eq(variables['UPLOADPACKAGETOPRERELEASEFEED'], true))
13
+ useDotNetTask : false
14
+ packagesToPush : " $(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg"
15
+ packageParentPath : " $(Build.ArtifactStagingDirectory)"
16
+ publishVstsFeed : " e6a70c92-4128-439f-8012-382fe78d6396/f37f760c-aebd-443e-9714-ce725cd427df"
17
+ nuGetFeedType : " internal"
18
+ allowPackageConflicts : true
19
+
20
+ pool :
21
+ name : 1es-pool-azfunc
22
+ image : 1es-windows-2022
23
+ os : windows
24
+
25
+ variables :
26
+ ${{ if contains(variables['Build.SourceBranch'], '/tags/' ) }} :
27
+ isTagTemp : true
28
+ isTag : $[variables.isTagTemp]
29
+
30
+ strategy :
31
+ matrix :
32
+ Python37V4 :
33
+ pythonVersion : " 3.7"
34
+ workerPath : $(PROD_V4_WORKER_PY)
35
+ Python38V4 :
36
+ pythonVersion : " 3.8"
37
+ workerPath : $(PROD_V4_WORKER_PY)
38
+ Python39V4 :
39
+ pythonVersion : " 3.9"
40
+ workerPath : $(PROD_V4_WORKER_PY)
41
+ Python310V4 :
42
+ pythonVersion : " 3.10"
43
+ workerPath : $(PROD_V4_WORKER_PY)
44
+ Python311V4 :
45
+ pythonVersion : " 3.11"
46
+ workerPath : $(PROD_V4_WORKER_PY)
47
+
48
+ steps :
49
+ - template : pack/templates/win_env_gen.yml
50
+ displayName : " Build Windows x64"
51
+ parameters :
52
+ pythonVersion : " $(pythonVersion)"
53
+ workerPath : " $(workerPath)"
54
+ architecture : " x64"
55
+ artifactName : " $(pythonVersion)_WINDOWS_X64"
56
+ - template : pack/templates/win_env_gen.yml
57
+ displayName : " Build Windows x86"
58
+ parameters :
59
+ pythonVersion : " $(pythonVersion)"
60
+ workerPath : " $(workerPath)"
61
+ architecture : " x86"
62
+ artifactName : " $(pythonVersion)_WINDOWS_x86"
63
+ - template : pack/templates/nix_env_gen.yml
64
+ displayName : " Build Linux x64"
65
+ parameters :
66
+ pythonVersion : " $(pythonVersion)"
67
+ workerPath : " $(workerPath)"
68
+ artifactName : " $(pythonVersion)_LINUX_X64"
69
+ - template : pack/templates/nix_env_gen.yml
70
+ displayName : " Build OSX X64"
71
+ parameters :
72
+ pythonVersion : " $(pythonVersion)"
73
+ workerPath : " $(workerPath)"
74
+ artifactName : " $(pythonVersion)_OSX_X64"
75
+ - template : pack/templates/macos_64_env_gen.yml
76
+ displayName : " Build OSX ARM64"
77
+ parameters :
78
+ pythonVersion : " $(pythonVersion)"
79
+ workerPath : " $(workerPath)"
80
+ artifactName : " $(pythonVersion)_OSX_ARM64"
0 commit comments