forked from csound/csound
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
90 lines (78 loc) · 3.78 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
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
image: Visual Studio 2019
environment:
APPVEYOR_SAVE_CACHE_ON_ERROR: "true"
APPVEYOR_RDP_PASSWORD: Vercoe123
CSOUND_VERSION: 6.14.0
VCPKGDir: C:\Tools\vcpkg
VSGENERATOR: Visual Studio 16 2019
platform: x64
configuration: Release
init:
- set CSOUND_HOME=%APPVEYOR_BUILD_FOLDER%
- set PYTHON=C:\Python27-x64\python.exe
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
- set /p RedistVersion=<"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\Microsoft.VCRedistVersion.default.txt"
- set VCREDIST_CRT_DIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\%RedistVersion%\x64\Microsoft.VC142.CRT
- set VCREDIST_CXXAMP_DIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\%RedistVersion%\x64\Microsoft.VC142.CXXAMP
- set VCREDIST_OPENMP_DIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\%RedistVersion%\x64\Microsoft.VC142.OpenMP
- call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Auxiliary\\Build\\vcvars64.bat"
install:
- cd msvc
- dir
- choco config set --name="'webRequestTimeoutSeconds'" --value="'500'"
- powershell -ExecutionPolicy ByPass -File downloadDependencies.ps1 -vsGenerator "%VSGENERATOR%"
# Download and unzip manual and CsoundQT for inclusion with the installer
- cd c:/
- ps: Start-FileDownload 'https://github.com/csound/manual/releases/download/6.14.0/Csound6.14.0_manual_html.zip'
- cmd: 7z.exe x Csound6.14.0_manual_html.zip
- ps: Start-FileDownload 'https://github.com/CsoundQt/CsoundQt/releases/download/0.9.7/CsoundQt-0.9.7-Win64.zip'
- cmd: 7z.exe x CsoundQt-0.9.7-Win64.zip -oCsoundQt-0.9.7-Win64
- ps: Start-FileDownload 'https://raw.githubusercontent.com/CsoundQt/CsoundQt/develop/images/qtcs.ico'
- cd C:\projects\csound\
build:
parallel: true
project: msvc\csound-vs\Csound.sln
after_build:
- set PATH=%PATH%;"C:\\Program Files (x86)\\Inno Setup 6"
- iscc /dVcpkgInstallDir=%VCPKGDir%\\installed\\x64-windows-csound /omsvc installer\\windows\\csound6_x64_appveyor.iss
- 7z a csound-windows_x86_64-%CSOUND_VERSION%-%APPVEYOR_BUILD_NUMBER%.zip %APPVEYOR_BUILD_FOLDER%\msvc\csound-vs\Release\*.exe %APPVEYOR_BUILD_FOLDER%\msvc\csound-vs\Release\csound64.lib %APPVEYOR_BUILD_FOLDER%\include\ %APPVEYOR_BUILD_FOLDER%\msvc\csound-vs\Release\*.dll %APPVEYOR_BUILD_FOLDER%\msvc\csound-vs\Release\*.pyd %APPVEYOR_BUILD_FOLDER%\msvc\csound-vs\*.jar %APPVEYOR_BUILD_FOLDER%\msvc\csound-vs\*.py
- 7z l csound-windows_x86_64-%CSOUND_VERSION%-%APPVEYOR_BUILD_NUMBER%.zip
test_script:
- cmake --build msvc\csound-vs --target csdtests
artifacts:
- path: csound-windows_x86_64-*.zip
name: Csound Binaries
type: zip
- path: msvc/Csound6_x64*.exe
name: Csound Installer
type: exe
cache:
- C:\Tools\vcpkg\installed -> C:\projects\csound\msvc\downloadDependencies.ps1
- C:\projects\csound\msvc\cache
- C:\ProgramData\chocolatey\bin -> appveyor.yml
- C:\ProgramData\chocolatey\lib -> appveyor.yml
deploy:
release: csound-$(csound_version)
description: 'Csound Windows installer.'
provider: GitHub
auth_token:
secure: puEAPJVkwT2mZwhobSNpk5LhUEP+61K9j6T66qIXKFk=
artifact: msvc/csound-windows_x86_64*.exe
draft: true
prerelease: true
on:
branch: develop
appveyor_repo_tag: true # deploy on tag push only
notifications:
- provider: Email
to:
subject: 'Build {{status}}' # optional
on_build_success: false
on_build_failure: true
on_build_status_changed: false
# - provider: Slack
# auth_token:
# secure: kBl9BlxvRMr9liHmnBs14A==
# channel: development
# template: "{{template_variable_1}}, {{template_variable_2}}, ..."