]>
Commit | Line | Data |
---|---|---|
d8a24927 | 1 | version: 1.0.{build} |
8596b131 | 2 | image: Visual Studio 2019 |
d8a24927 | 3 | branches: |
b1db9dd6 | 4 | only: |
d8a24927 | 5 | - master |
80e74da4 AGS |
6 | configuration: |
7 | - Debug | |
8 | - Release | |
9 | clone_folder: C:\openvswitch_compile | |
d8a24927 | 10 | init: |
80097852 AGS |
11 | - ps: $env:PATH ="C:\Python37;"+$env:PATH |
12 | - ps: New-Item -Type HardLink -Path "C:\Python37\python3.exe" -Value "C:\Python37\python.exe" | |
d8a24927 | 13 | - ps: >- |
d8a24927 GS |
14 | mkdir C:\ovs-build-downloads |
15 | ||
80e74da4 | 16 | mkdir C:\openvswitch\driver |
d8a24927 | 17 | |
80e74da4 | 18 | $source = "https://slproweb.com/download/Win64OpenSSL-1_0_2u.exe" |
d8a24927 | 19 | |
80e74da4 | 20 | $destination = "C:\ovs-build-downloads\Win64OpenSSL-1_0_2u.exe" |
d8a24927 | 21 | |
80e74da4 | 22 | Invoke-WebRequest $source -OutFile $destination |
d8a24927 GS |
23 | |
24 | cd C:\ovs-build-downloads | |
25 | ||
80e74da4 | 26 | .\Win64OpenSSL-1_0_2u.exe /silent /verysilent /sp- /suppressmsgboxes |
d8a24927 GS |
27 | |
28 | Start-Sleep -s 30 | |
29 | ||
30 | cd C:\openvswitch | |
31 | ||
8596b131 AGS |
32 | git clone https://git.code.sf.net/p/pthreads4w/code c:\pthreads4w-code |
33 | ||
0c4d144a | 34 | python3 -m pip install pypiwin32 --disable-pip-version-check |
808c73b4 | 35 | |
80e74da4 AGS |
36 | cd C:\openvswitch_compile |
37 | ||
d8a24927 | 38 | build_script: |
8596b131 | 39 | - '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"' |
d8a24927 | 40 | - C:\MinGW\msys\1.0\bin\bash -lc "echo \"C:/MinGW /mingw\" > /etc/fstab" |
d8a24927 | 41 | - C:\MinGW\msys\1.0\bin\bash -lc "mv /bin/link.exe /bin/link_copy.exe" |
8596b131 AGS |
42 | # Build pthreads |
43 | - C:\MinGW\msys\1.0\bin\bash -lc "cd /c/pthreads4w-code && nmake all install" | |
80e74da4 AGS |
44 | - C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch_compile && ./boot.sh" |
45 | - C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch_compile && ./configure CC=build-aux/cccl LD=\"`which link`\" LIBS=\"-lws2_32 -lShlwapi -liphlpapi -lwbemuuid -lole32 -loleaut32\" --prefix=C:/openvswitch/usr --localstatedir=C:/openvswitch/var --sysconfdir=C:/openvswitch/etc --with-pthread=c:/PTHREADS-BUILT/ --enable-ssl --with-openssl=C:/OpenSSL-Win64 --with-vstudiotarget=\"%CONFIGURATION%\"" | |
46 | - C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch_compile && make -j 4" | |
47 | - C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch_compile && make datapath_windows_analyze" | |
48 | - C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch_compile && make install" | |
49 | - C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch_compile && make windows_installer" | |
50 | - cp C:\PTHREADS-BUILT\bin\pthreadVC3.dll C:\openvswitch\usr\bin | |
51 | - cp C:\PTHREADS-BUILT\bin\pthreadVC3.dll C:\openvswitch\usr\sbin | |
52 | - ps: cp C:\openvswitch_compile\datapath-windows\x64\Win10$env:CONFIGURATION\package\* C:\openvswitch\driver | |
53 | - ps: cp C:\openvswitch_compile\datapath-windows\x64\Win10$env:CONFIGURATION\package.cer C:\openvswitch\driver | |
54 | - ps: cp C:\openvswitch_compile\datapath-windows\misc\* C:\openvswitch\driver | |
55 | - cp c:\openvswitch_compile\windows\ovs-windows-installer\bin\x64\Release\OpenvSwitch.msi c:\OpenvSwitch-%CONFIGURATION%.msi | |
56 | ||
57 | after_build: | |
58 | - ps: 7z a C:\ovs-master-$env:CONFIGURATION.zip C:\openvswitch | |
59 | - ps: Push-AppveyorArtifact C:\ovs-master-$env:CONFIGURATION.zip | |
60 | - ps: Push-AppveyorArtifact C:\OpenvSwitch-$env:CONFIGURATION.msi |