2015-02-05 09:49:26 -08:00
|
|
|
version: 1.0.{build}
|
appveyor: Move from MinGW 32bit to msys64.
AppVeyor is planning to remove support for MinGW 32bit soon. And we
had a couple of incidents where it wasn't available already, so we
moved to a 'Previous' image.
Move to msys64 instead.
While at it making the CI scripts a little nicer, moving the non-Windows
parts of the preparation and build to separate files.
MSYS2 has its own version of python. However, we do not support
building on Windows with non-Windows python build. The main issue is
the delimiter symbol in PYTHONPATH. In Windows version it has to be
';', while the python supplied with MSYS2 uses ':' as on Linux, while
we detect Windows and pass ';' during the build. Renaming the binary,
so the Windows version is used.
Additionally switched to Python 3.12, 3.7 reached EoL some time back,
though it's still available in AppVeyor.
The stderr has to be redirected to stdout for scripts, because any
message on stderr is treated as fatal failure by PowerShell.
Scripts are running with 'set -e', so a failure of individual
commands will fail the script.
The OpenSSL download is still failing, but it is out of scope for
this change.
Acked-by: Alin Gabriel Serdean <aserdean@ovn.org>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
2024-02-09 21:47:26 +01:00
|
|
|
image: Visual Studio 2019
|
2015-02-05 09:49:26 -08:00
|
|
|
branches:
|
2018-02-27 11:57:37 -08:00
|
|
|
only:
|
2015-02-05 09:49:26 -08:00
|
|
|
- master
|
2020-09-24 09:24:03 +03:00
|
|
|
configuration:
|
|
|
|
- Debug
|
|
|
|
- Release
|
|
|
|
clone_folder: C:\openvswitch_compile
|
appveyor: Move from MinGW 32bit to msys64.
AppVeyor is planning to remove support for MinGW 32bit soon. And we
had a couple of incidents where it wasn't available already, so we
moved to a 'Previous' image.
Move to msys64 instead.
While at it making the CI scripts a little nicer, moving the non-Windows
parts of the preparation and build to separate files.
MSYS2 has its own version of python. However, we do not support
building on Windows with non-Windows python build. The main issue is
the delimiter symbol in PYTHONPATH. In Windows version it has to be
';', while the python supplied with MSYS2 uses ':' as on Linux, while
we detect Windows and pass ';' during the build. Renaming the binary,
so the Windows version is used.
Additionally switched to Python 3.12, 3.7 reached EoL some time back,
though it's still available in AppVeyor.
The stderr has to be redirected to stdout for scripts, because any
message on stderr is treated as fatal failure by PowerShell.
Scripts are running with 'set -e', so a failure of individual
commands will fail the script.
The OpenSSL download is still failing, but it is out of scope for
this change.
Acked-by: Alin Gabriel Serdean <aserdean@ovn.org>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
2024-02-09 21:47:26 +01:00
|
|
|
shallow_clone: true
|
2015-02-05 09:49:26 -08:00
|
|
|
init:
|
appveyor: Move from MinGW 32bit to msys64.
AppVeyor is planning to remove support for MinGW 32bit soon. And we
had a couple of incidents where it wasn't available already, so we
moved to a 'Previous' image.
Move to msys64 instead.
While at it making the CI scripts a little nicer, moving the non-Windows
parts of the preparation and build to separate files.
MSYS2 has its own version of python. However, we do not support
building on Windows with non-Windows python build. The main issue is
the delimiter symbol in PYTHONPATH. In Windows version it has to be
';', while the python supplied with MSYS2 uses ':' as on Linux, while
we detect Windows and pass ';' during the build. Renaming the binary,
so the Windows version is used.
Additionally switched to Python 3.12, 3.7 reached EoL some time back,
though it's still available in AppVeyor.
The stderr has to be redirected to stdout for scripts, because any
message on stderr is treated as fatal failure by PowerShell.
Scripts are running with 'set -e', so a failure of individual
commands will fail the script.
The OpenSSL download is still failing, but it is out of scope for
this change.
Acked-by: Alin Gabriel Serdean <aserdean@ovn.org>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
2024-02-09 21:47:26 +01:00
|
|
|
- ps: $env:PATH ="C:\Python312-x64;"+$env:PATH
|
|
|
|
- ps: New-Item -Type HardLink -Path "C:\Python312-x64\python3.exe"
|
|
|
|
-Value "C:\Python312-x64\python.exe"
|
|
|
|
- ps: |
|
2015-02-05 09:49:26 -08:00
|
|
|
mkdir C:\ovs-build-downloads
|
|
|
|
|
2020-09-24 09:24:03 +03:00
|
|
|
$source = "https://slproweb.com/download/Win64OpenSSL-1_0_2u.exe"
|
|
|
|
$destination = "C:\ovs-build-downloads\Win64OpenSSL-1_0_2u.exe"
|
|
|
|
Invoke-WebRequest $source -OutFile $destination
|
2015-02-05 09:49:26 -08:00
|
|
|
|
|
|
|
cd C:\ovs-build-downloads
|
2020-09-24 09:24:03 +03:00
|
|
|
.\Win64OpenSSL-1_0_2u.exe /silent /verysilent /sp- /suppressmsgboxes
|
2015-02-05 09:49:26 -08:00
|
|
|
Start-Sleep -s 30
|
2020-09-24 09:24:03 +03:00
|
|
|
cd C:\openvswitch_compile
|
appveyor: Move from MinGW 32bit to msys64.
AppVeyor is planning to remove support for MinGW 32bit soon. And we
had a couple of incidents where it wasn't available already, so we
moved to a 'Previous' image.
Move to msys64 instead.
While at it making the CI scripts a little nicer, moving the non-Windows
parts of the preparation and build to separate files.
MSYS2 has its own version of python. However, we do not support
building on Windows with non-Windows python build. The main issue is
the delimiter symbol in PYTHONPATH. In Windows version it has to be
';', while the python supplied with MSYS2 uses ':' as on Linux, while
we detect Windows and pass ';' during the build. Renaming the binary,
so the Windows version is used.
Additionally switched to Python 3.12, 3.7 reached EoL some time back,
though it's still available in AppVeyor.
The stderr has to be redirected to stdout for scripts, because any
message on stderr is treated as fatal failure by PowerShell.
Scripts are running with 'set -e', so a failure of individual
commands will fail the script.
The OpenSSL download is still failing, but it is out of scope for
this change.
Acked-by: Alin Gabriel Serdean <aserdean@ovn.org>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
2024-02-09 21:47:26 +01:00
|
|
|
- ps: git clone -q https://git.code.sf.net/p/pthreads4w/code c:\pthreads4w-code
|
|
|
|
- ps: python3 -m pip install pypiwin32 --disable-pip-version-check
|
2020-09-24 09:24:03 +03:00
|
|
|
|
2015-02-05 09:49:26 -08:00
|
|
|
build_script:
|
2020-09-24 09:22:38 +03:00
|
|
|
- '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"'
|
appveyor: Move from MinGW 32bit to msys64.
AppVeyor is planning to remove support for MinGW 32bit soon. And we
had a couple of incidents where it wasn't available already, so we
moved to a 'Previous' image.
Move to msys64 instead.
While at it making the CI scripts a little nicer, moving the non-Windows
parts of the preparation and build to separate files.
MSYS2 has its own version of python. However, we do not support
building on Windows with non-Windows python build. The main issue is
the delimiter symbol in PYTHONPATH. In Windows version it has to be
';', while the python supplied with MSYS2 uses ':' as on Linux, while
we detect Windows and pass ';' during the build. Renaming the binary,
so the Windows version is used.
Additionally switched to Python 3.12, 3.7 reached EoL some time back,
though it's still available in AppVeyor.
The stderr has to be redirected to stdout for scripts, because any
message on stderr is treated as fatal failure by PowerShell.
Scripts are running with 'set -e', so a failure of individual
commands will fail the script.
The OpenSSL download is still failing, but it is out of scope for
this change.
Acked-by: Alin Gabriel Serdean <aserdean@ovn.org>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
2024-02-09 21:47:26 +01:00
|
|
|
- ps: C:\msys64\msys2_shell.cmd -here -defterm -no-start -use-full-path -c
|
|
|
|
".ci/windows-prepare.sh 2>&1"
|
|
|
|
- ps: C:\msys64\msys2_shell.cmd -here -defterm -no-start -use-full-path -c
|
|
|
|
".ci/windows-build.sh $env:CONFIGURATION 2>&1"
|
|
|
|
- ps: cp C:\PTHREADS-BUILT\bin\pthreadVC3.dll C:\openvswitch\usr\bin
|
|
|
|
- ps: cp C:\PTHREADS-BUILT\bin\pthreadVC3.dll C:\openvswitch\usr\sbin
|
|
|
|
- ps: mkdir C:\openvswitch\driver
|
|
|
|
- ps: cp datapath-windows\x64\Win10$env:CONFIGURATION\package\* C:\openvswitch\driver
|
|
|
|
- ps: cp datapath-windows\x64\Win10$env:CONFIGURATION\package.cer C:\openvswitch\driver
|
|
|
|
- ps: cp datapath-windows\misc\* C:\openvswitch\driver
|
|
|
|
- ps: cp windows\ovs-windows-installer\bin\x64\Release\OpenvSwitch.msi
|
|
|
|
c:\OpenvSwitch-$env:CONFIGURATION.msi
|
2020-09-24 09:24:03 +03:00
|
|
|
|
|
|
|
after_build:
|
appveyor: Move from MinGW 32bit to msys64.
AppVeyor is planning to remove support for MinGW 32bit soon. And we
had a couple of incidents where it wasn't available already, so we
moved to a 'Previous' image.
Move to msys64 instead.
While at it making the CI scripts a little nicer, moving the non-Windows
parts of the preparation and build to separate files.
MSYS2 has its own version of python. However, we do not support
building on Windows with non-Windows python build. The main issue is
the delimiter symbol in PYTHONPATH. In Windows version it has to be
';', while the python supplied with MSYS2 uses ':' as on Linux, while
we detect Windows and pass ';' during the build. Renaming the binary,
so the Windows version is used.
Additionally switched to Python 3.12, 3.7 reached EoL some time back,
though it's still available in AppVeyor.
The stderr has to be redirected to stdout for scripts, because any
message on stderr is treated as fatal failure by PowerShell.
Scripts are running with 'set -e', so a failure of individual
commands will fail the script.
The OpenSSL download is still failing, but it is out of scope for
this change.
Acked-by: Alin Gabriel Serdean <aserdean@ovn.org>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
2024-02-09 21:47:26 +01:00
|
|
|
- ps: 7z a C:\ovs-master-$env:CONFIGURATION.zip C:\openvswitch
|
|
|
|
- ps: Push-AppveyorArtifact C:\ovs-master-$env:CONFIGURATION.zip
|
|
|
|
- ps: Push-AppveyorArtifact C:\OpenvSwitch-$env:CONFIGURATION.msi
|