forked from OpenSC/libp11
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
65 lines (59 loc) · 2.34 KB
/
appveyor.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
version: 0.4.11.{build}
platform:
- x86
- x64
configuration:
- Release
- Debug
environment:
matrix:
- VSVER: 12
# - VSVER: 10
install:
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
throw "There are newer queued builds for this pull request, failing early." }
- date /T & time /T
- set OPENSSL_VER=1_1_1d
- ps: >-
If ($env:Platform -Match "x86") {
$env:VCVARS_PLATFORM="x86"
$env:ENV_PLATFORM="x86"
$env:NMAKE_ARCH=""
$env:OPENSSL_PF="Win32"
} Else {
$env:VCVARS_PLATFORM="amd64"
$env:ENV_PLATFORM="x64"
$env:NMAKE_ARCH="BUILD_ON=WIN64 BUILD_FOR=WIN64"
$env:OPENSSL_PF="Win64"
}
- ps: >-
If (!(Test-Path -Path "C:\OpenSSL-${env:OPENSSL_PF}\fuzz" )) {
Write-Output "Downloading https://slproweb.com/download/${env:OPENSSL_PF}OpenSSL-${env:OPENSSL_VER}.exe"
Start-FileDownload https://slproweb.com/download/${env:OPENSSL_PF}OpenSSL-${env:OPENSSL_VER}.exe -FileName C:\WinOpenSSL.exe
Remove-Item -Path "C:\OpenSSL-${env:OPENSSL_PF}" -Recurse
Start-Process -FilePath C:\WinOpenSSL.exe -ArgumentList "/VERYSILENT /SP- /SUPPRESSMSGBOXES /NORESTART" -Wait -NoNewWindow
Write-Output "Installed C:\OpenSSL-${env:OPENSSL_PF}"
}
- ps: >-
If ($env:Configuration -Like "*Debug*") {
$env:NMAKE_EXTRA="DEBUG=yes ${env:NMAKE_EXTRA}"
}
- ps: $env:VSCOMNTOOLS=(Get-Content ("env:VS" + "$env:VSVER" + "0COMNTOOLS"))
- ps: Write-Output "Using Visual Studio ${env:VSVER}.0 at ${env:VSCOMNTOOLS}"
- call "%VSCOMNTOOLS%\..\..\VC\vcvarsall.bat" %VCVARS_PLATFORM%
build_script:
- nmake /f Makefile.mak %NMAKE_ARCH% %NMAKE_EXTRA%
- appveyor PushArtifact src\libp11.dll
- appveyor PushArtifact src\libp11.lib
- appveyor PushArtifact src\pkcs11.dll
- appveyor PushArtifact src\pkcs11.lib
- ps: >-
If ($env:Configuration -Like "*Debug*") {
Push-AppveyorArtifact src\libp11.pdb
Push-AppveyorArtifact src\pkcs11.pdb
}
#cache:
# - C:\OpenSSL-Win32 -> appveyor.yml
# - C:\OpenSSL-Win64 -> appveyor.yml