-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.win.cirrus.yml.win
91 lines (80 loc) · 3.75 KB
/
.win.cirrus.yml.win
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
env:
BACKBLAZE_APP_KEY_ID: ENCRYPTED[95a37d7a31679c7fb32b03d05b33edb065dcf7f0f823e7fe721e3247e5f3668d4063591d5c733ade1fd7a32f5f859c5f]
BACKBLAZE_APP_KEY: ENCRYPTED[770e70e48569f43396e50d0692a4c1abe64e4821c1ef816520c792ad6222c61641b7e56132e37896340f740720196604]
win_machine_build_task:
matrix:
- {
env: { BITNESS: x64, GENERATOR_STRING: "Visual Studio 15 2017 Win64" },
windows_container: { dockerfile: .ci/Dockerfile.x64, os_version: 2019 },
}
- {
env: { BITNESS: x86, GENERATOR_STRING: "Visual Studio 15 2017" },
windows_container: { dockerfile: .ci/Dockerfile.x86, os_version: 2019 },
}
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true'
curses_download_cache:
folder: PDCurses
fingerprint_script: echo pdcurses-fingerprint-2
populate_script:
- git clone https://github.com/wmcbrine/PDCurses
curses_build_script:
- cd PDCurses/wincon
- set VSCMD_DEBUG=1
- '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat" -arch=%BITNESS%'
- nmake -f Makefile.vc UTF8=Y WIDE=y
- cmake -E copy ../curses.h C:/include
- cmake -E copy ../panel.h C:/include
- cmake -E copy ../curspriv.h C:/include
- cmake -E copy pdcurses.lib C:/lib
- nmake -f Makefile.vc clean # Remove the generated files, so they aren't cached
lame_download_cache:
folder: lame-3.100
fingerprint_script: echo lame-3.100-fingerprint-2
populate_script:
- aria2c https://netix.dl.sourceforge.net/project/lame/lame/3.100/lame-3.100.tar.gz
- 7z x lame-3.100.tar.gz
- 7z x lame-3.100.tar
- cd lame-3.100
- ps: ((Get-Content -path .\Makefile.MSVC -Raw) -replace '/machine:I386','/machine:X64') | Set-Content -path .\Makefile.MSVCx64 # Setup for x64
- cmake -E copy Makefile.MSVC Makefile.MSVCx86
- cmake -E copy configMS.h config.h
lame_build_script:
- cd lame-3.100
- set VSCMD_DEBUG=1
- '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat" -arch=%BITNESS%'
- nmake -f Makefile.MSVC%BITNESS% comp=msvc asm=no DLL /D
- cmake -E copy output\libmp3lame.dll C:/lib
- cmake -E copy output\libmp3lame-static.lib C:/lib
- nmake -f Makefile.MSVC%BITNESS% comp=msvc asm=no clean /D
rtaudio_download_cache:
folder: rtaudio-5.1.0
fingerprint_script: echo rtaudio-5.1.0-fingerprint-0
populate_script:
- aria2c http://www.music.mcgill.ca/~gary/rtaudio/release/rtaudio-5.1.0.tar.gz
- 7z x rtaudio-5.1.0.tar.gz
- 7z x rtaudio-5.1.0.tar
rtaudio_build_script:
- cd rtaudio-5.1.0
- cmake -E make_directory __build && cd __build
- cmake -G "%GENERATOR_STRING%" .. -DCMAKE_TOOLCHAIN_FILE=C:\vcpkg\scripts\buildsystems\vcpkg.cmake -DVCPKG_TARGET_TRIPLET=%BITNESS%-windows --debug-output
- cmake --build . -v --config Release
- cmake --install .
- cd ..
- cmake -E copy __build\Release\rtaudio.lib C:/lib
- cmake -E copy __build\Release\rtaudio.dll C:/lib
- cmake -E copy ./RtAudio.cpp C:/include
- cmake -E copy RtAudio.h C:/include
- cmake -E remove_directory __build # Remove the generated files, so they aren't cached
build_script:
- cmake -E make_directory __build && cd __build
- cmake -G "%GENERATOR_STRING%" .. -DCMAKE_TOOLCHAIN_FILE=C:\vcpkg\scripts\buildsystems\vcpkg.cmake -DVCPKG_TARGET_TRIPLET=%BITNESS%-windows --debug-output
- cmake --build . -v --config Release
- cmake -E copy C:/lib/rtaudio.dll Release/
dist_script:
- cmake -E copy LICENCE.md __build/Release/
- cmake -E copy README.md __build/Release/
- cmake -E copy CHANGELOG.md __build/Release/
- cd __build/Release/*
- 7z a chronicle-win%BITNESS%-%CIRRUS_BUILD_ID%.zip ./*
package_artifacts:
path: chronicle-win*