forked from analogdevicesinc/libm2k
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
102 lines (88 loc) · 4.62 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
91
92
93
94
95
96
97
98
99
100
101
102
image:
- Visual Studio 2017
#init:
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
version: '{branch}.{build}'
clone_depth: 1
environment:
# Tell msys2 to add mingw64 to the path
MSYSTEM: MINGW64
# Tell msys2 to inherit the current directory when starting the shell
CHERE_INVOKING: 1
cache:
- C:\glog -> CI\appveyor\install_glog.bat
install:
# Download libiio
- cd c:\
- appveyor DownloadFile https://ci.appveyor.com/api/projects/analogdevicesinc/libiio/artifacts/libiio.zip?branch=master
- 7z x libiio*.zip > nul
- mkdir libiio-win64
- mkdir libiio-win32
- mkdir libiio-mingw-win64
- mkdir libiio-mingw-win32
- mv libiio-*/MS64/* libiio-win64/
- cp libiio-*/include/* libiio-win64/
- mv libiio-*/MS32/* libiio-win32/
- cp libiio-*/include/* libiio-win32/
- mv libiio-*/MinGW32/* libiio-mingw-win32/
- cp libiio-*/include/* libiio-mingw-win32/
- mv libiio-*/MinGW64/* libiio-mingw-win64/
- cp libiio-*/include/* libiio-mingw-win64/
# Download SWIG
- cd c:\
- appveyor DownloadFile https://sourceforge.net/projects/swig/files/swigwin/swigwin-4.0.0/swigwin-4.0.0.zip
- 7z x swigwin-4.0.0.zip -oswig
- cd swig/swigwin-4.0.0
- xcopy * .. /s /e /h /Q
#Install Inno Setup
- choco install InnoSetup
- set PATH=%PATH%;"C:\Program Files (x86)\Inno Setup 5"
build_script:
# Download glog
- cd c:\
- C:\projects\libm2k\CI\appveyor\install_glog.bat "Release" "x64" "win64"
- C:\projects\libm2k\CI\appveyor\install_glog.bat "Release" "Win32" "win32"
- bash -c "/c/projects/libm2k/CI/appveyor/build_appveyor_msvc.sh"
#Create the installer
- copy "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Redist\MSVC\14.16.27012\x86\Microsoft.VC141.CRT\msvcp140.dll" c:\projects\libm2k\build-win32
- copy "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Redist\MSVC\14.16.27012\x64\Microsoft.VC141.CRT\msvcp140.dll" c:\projects\libm2k\build-win64
- ISCC c:\projects\libm2k\build-win64\libm2k.iss
- appveyor PushArtifact C:\libm2k-system-setup.exe
# Create ZIPs
- cd c:\projects\libm2k
- mkdir c:\libm2k-win32
- mkdir c:\libm2k-win32\dist
- xcopy include c:\libm2k-win32 /s /e /h
- copy build-win32\libm2k.* c:\libm2k-win32\
- copy build-win32\_libm2k.* c:\libm2k-win32\
- copy build-win32\libm2k-sharp.dll c:\libm2k-win32\
- copy build-win32\libm2k-sharp-cxx-wrap.dll c:\libm2k-win32\
- copy build-win32\*.exe c:\libm2k-win32\
- copy build-win32\dist\*.exe c:\libm2k-win32\dist\
- copy build-win32\dist\*.whl c:\libm2k-win32\dist\
- copy c:\libiio-win32\*.dll c:\libm2k-win32\
- copy c:\glog\build_0_3_5-win32\Release\glog.dll c:\libm2k-win32\
#- $Fullname = Get-ChildItem -Path "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Redist\MSVC\*\x86" -Filter msvcp140.dll -Recurse | %{echo $_.FullName}
- copy "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Redist\MSVC\14.16.27012\x86\Microsoft.VC141.CRT\msvcp140.dll" c:\libm2k-win32\
- 7z a "c:\libm2k-win32.zip" c:\libm2k-win32
- ps: Get-ChildItem c:\libm2k-win32\dist\*.whl | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
- appveyor PushArtifact c:\libm2k-win32.zip
- mkdir c:\libm2k-win64
- mkdir c:\libm2k-win64\dist
- xcopy include c:\libm2k-win64 /s /e /h
- copy build-win64\libm2k.* c:\libm2k-win64\
- copy build-win64\_libm2k.* c:\libm2k-win64\
- copy build-win64\libm2k-sharp.dll c:\libm2k-win64\
- copy build-win64\libm2k-sharp-cxx-wrap.dll c:\libm2k-win64\
- copy build-win64\*.exe c:\libm2k-win64\
- copy build-win64\dist\*.exe c:\libm2k-win64\dist\
- copy build-win64\dist\*.whl c:\libm2k-win64\dist\
- copy c:\libiio-win64\*.dll c:\libm2k-win64\
- copy c:\glog\build_0_3_5-win64\Release\glog.dll c:\libm2k-win64\
#- $Fullname = Get-ChildItem -Path "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Redist\MSVC\*\x64" -Filter msvcp140.dll -Recurse | %{echo $_.FullName}
- copy "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Redist\MSVC\14.16.27012\x64\Microsoft.VC141.CRT\msvcp140.dll" c:\libm2k-win64\
- 7z a "c:\libm2k-win64.zip" c:\libm2k-win64
- ps: Get-ChildItem c:\libm2k-win64\dist\*.whl | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
- appveyor PushArtifact c:\libm2k-win64.zip
#on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))