-
-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathopenssl-build.yml
More file actions
119 lines (101 loc) · 2.99 KB
/
openssl-build.yml
File metadata and controls
119 lines (101 loc) · 2.99 KB
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
parameters:
- name: SourceTag
displayName: 'OpenSSL Source Tag'
type: string
- name: SigningCertificate
displayName: "Code signing certificate"
type: string
default: 'PythonSoftwareFoundation'
values:
- 'PythonSoftwareFoundation'
- 'TestSign'
- 'Unsigned'
- name: SourcesRepo
displayName: 'Sources Repository'
type: string
default: 'https://github.com/python/cpython-source-deps'
name: ${{ parameters.SourceTag }}_$(Date:yyyyMMdd)$(Rev:.rr)
variables:
- ${{ if eq(parameters.SigningCertificate, 'PythonSoftwareFoundation') }}:
- group: CPythonSign
- ${{ if eq(parameters.SigningCertificate, 'TestSign') }}:
- group: CPythonTestSign
- name: IntDir
value: '$(Build.BinariesDirectory)'
- name: OutDir
value: '$(Build.ArtifactStagingDirectory)'
- name: SigningDescription
value: 'OpenSSL for Python (${{ parameters.SourceTag }})'
jobs:
- job: Build_SSL
displayName: OpenSSL
pool:
vmImage: windows-latest
strategy:
matrix:
win32:
Platform: 'win32'
VCPlatform: 'amd64_x86'
OpenSSLPlatform: 'VC-WIN32 no-asm'
amd64:
Platform: 'amd64'
VCPlatform: 'amd64'
OpenSSLPlatform: 'VC-WIN64A-masm'
arm64:
Platform: 'arm64'
VCPlatform: 'amd64_arm64'
OpenSSLPlatform: 'VC-WIN64-ARM'
workspace:
clean: all
steps:
- checkout: none
- template: ./find-tools.yml
- powershell: |
git clone ${{ parameters.SourcesRepo }} -b ${{ parameters.SourceTag }} --depth 1 .
displayName: 'Check out OpenSSL sources'
- script: |
call "$(vcvarsall)" $(VCPlatform)
perl "$(Build.SourcesDirectory)\Configure" $(OpenSSLPlatform) no-uplink
nmake
workingDirectory: '$(IntDir)'
displayName: 'Build OpenSSL'
- ${{ if ne(parameters.SigningCertificate, 'Unsigned') }}:
- template: sign-files.yml
parameters:
Include: 'lib*.dll'
WorkingDir: $(IntDir)
SigningCertificate: ${{ parameters.SigningCertificate }}
- task: CopyFiles@2
displayName: 'Copy built libraries for upload'
inputs:
SourceFolder: '$(IntDir)'
Contents: |
lib*.dll
lib*.pdb
lib*.lib
include\openssl\*.h
TargetFolder: '$(OutDir)'
- task: CopyFiles@2
displayName: 'Copy header files for upload'
inputs:
SourceFolder: '$(Build.SourcesDirectory)'
Contents: |
include\openssl\*
TargetFolder: '$(OutDir)'
- task: CopyFiles@2
displayName: 'Copy applink files for upload'
inputs:
SourceFolder: '$(Build.SourcesDirectory)\ms'
Contents: applink.c
TargetFolder: '$(OutDir)\include'
- task: CopyFiles@2
displayName: 'Copy LICENSE for upload'
inputs:
SourceFolder: '$(Build.SourcesDirectory)'
Contents: |
LICENSE
LICENSE.txt
TargetFolder: '$(OutDir)'
- publish: '$(OutDir)'
artifact: '$(Platform)'
displayName: 'Publishing $(Platform)'