@@ -102,7 +102,7 @@ jobs:
102
102
# fix kernel crash
103
103
Invoke-WebRequest -Uri "https://github.com/kubeovn/ovs/commit/64383c14a9c25e9e0ca53c6758d9499c60132536.patch" -OutFile ..\ovs-01.patch
104
104
# support for building in github actions
105
- Invoke-WebRequest -Uri "https://github.com/kubeovn/ovs/commit/08a95db2ca506fce4d89fdf4fafab74607b2bb9f .patch" -OutFile ..\ovs-02.patch
105
+ Invoke-WebRequest -Uri "https://github.com/kubeovn/ovs/commit/d170c6237cb6a7bbe16f916ab2286c3c942a852c .patch" -OutFile ..\ovs-02.patch
106
106
# listen on tcp 127.0.0.1:6643 by default
107
107
Invoke-WebRequest -Uri "https://github.com/kubeovn/ovs/commit/680e77a190ae7df3086bc35bb6150238e97f9020.patch" -OutFile ..\ovs-03.patch
108
108
git apply ..\ovs-01.patch
@@ -112,14 +112,17 @@ jobs:
112
112
- name : Apply OVN patches
113
113
working-directory : ovn
114
114
run : |
115
+ # python: Rename build related code to ovs_build_helpers.
116
+ Invoke-WebRequest -Uri "https://github.com/kubeovn/ovn/commit/9d961aec6fd7ef3e3002bc34e285833279e989c2.patch" -OutFile ..\ovn-00.patch
115
117
# change hash type from dp_hash to hash with field src_ip
116
118
Invoke-WebRequest -Uri "https://github.com/kubeovn/ovn/commit/5a04402c01df1463b9e1edcbc1c5634793687140.patch" -OutFile ..\ovn-01.patch
117
119
# add support for windows
118
- Invoke-WebRequest -Uri "https://github.com/kubeovn/ovn/commit/2c85af7097e4c39d225c98dc68b55a964d0197d7 .patch" -OutFile ..\ovn-02.patch
120
+ Invoke-WebRequest -Uri "https://github.com/kubeovn/ovn/commit/2be843b9fc7cba253fb27fc57c384034e97db148 .patch" -OutFile ..\ovn-02.patch
119
121
# set br-int controller to TCP 127.0.0.1:6653
120
122
Invoke-WebRequest -Uri "https://github.com/kubeovn/ovn/commit/24dcd9485ebb0f6c962250684fae512850cd9210.patch" -OutFile ..\ovn-03.patch
121
123
# ovn-controller: do not send GARP on localnet for Kube-OVN ports
122
124
Invoke-WebRequest -Uri "https://github.com/kubeovn/ovn/commit/30ff0ba51745f5ea1b38ed63e8cd8e0479d0f916.patch" -OutFile ..\ovn-04.patch
125
+ git apply ..\ovn-00.patch
123
126
git apply ..\ovn-01.patch
124
127
git apply ..\ovn-02.patch
125
128
git apply ..\ovn-03.patch
@@ -132,9 +135,6 @@ jobs:
132
135
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
133
136
nmake all install
134
137
135
- - name : Install pypiwin32
136
- run : python3 -m pip install pypiwin32
137
-
138
138
- name : Build OVS and OVN
139
139
shell : cmd
140
140
env :
@@ -154,14 +154,15 @@ jobs:
154
154
echo %%~d | findstr /C:"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise" > nul && set _vs_path=!_vs_path!;%%~d
155
155
)
156
156
SET PATH="%_vs_path%;%PATH%"
157
- C:\msys64\usr\bin\bash.exe -lc "pacman -S --noconfirm libtool autoconf automake-wrapper"
157
+ C:\msys64\usr\bin\bash.exe -lc "pacman -S --noconfirm python-pip libtool autoconf automake-wrapper"
158
+ C:\msys64\usr\bin\bash.exe -lc "python3 -m pip install pypiwin32"
158
159
C:\msys64\usr\bin\bash.exe -lc "rm -f `which link`"
159
160
C:\msys64\usr\bin\bash.exe -lc "cd '%_ovs_dir%' && ./boot.sh"
160
161
C:\msys64\usr\bin\bash.exe -lc "cd '%_ovs_dir%' && ./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='%_p4w_dir%' --disable-ssl"
161
162
C:\msys64\usr\bin\bash.exe -lc "cd '%_ovs_dir%' && make -j"
162
163
C:\msys64\usr\bin\bash.exe -lc "cd '%_ovs_dir%' && make windows_installer"
163
164
C:\msys64\usr\bin\bash.exe -lc "cd '%_ovn_dir%' && ./boot.sh"
164
- C:\msys64\usr\bin\bash.exe -lc "cd '%_ovn_dir%' && ./configure CC=./build-aux/cccl LD='`which link`' LIBS='-lws2_32 -lShlwapi -liphlpapi -lwbemuuid -lole32 -loleaut32' --prefix='C:/ovn/usr' --localstatedir='C:/ovn/var' --sysconfdir='C:/ovn/etc' --with-pthread='%_p4w_dir%' --disable-ssl --with-ovs-source='../ovs' --with-ovs-build='../ovs' "
165
+ C:\msys64\usr\bin\bash.exe -lc "cd '%_ovn_dir%' && ./configure CC=./build-aux/cccl LD='`which link`' LIBS='-lws2_32 -lShlwapi -liphlpapi -lwbemuuid -lole32 -loleaut32' --prefix='C:/ovn/usr' --localstatedir='C:/ovn/var' --sysconfdir='C:/ovn/etc' --with-pthread='%_p4w_dir%' --disable-ssl --with-ovs-source='../ovs'"
165
166
C:\msys64\usr\bin\bash.exe -lc "cd '%_ovn_dir%' && make -j"
166
167
C:\msys64\usr\bin\bash.exe -lc "cd '%_ovn_dir%' && make install"
167
168
0 commit comments