[WIP] Improve CI.

This commit is contained in:
aouinizied 2022-03-26 00:50:14 +01:00
parent 10bc68389d
commit a10c2aee95
2 changed files with 3 additions and 3 deletions

View file

@ -19,6 +19,7 @@ build_libpcap() {
cd libpcap
./configure --enable-ipv6 --disable-universal --enable-dbus=no --without-libnl
make
make DESTDIR=/tmp/nfstream_build install
cd ..
echo "---------------------------------------------------------------------------------------------------------------"
echo ""
@ -62,9 +63,7 @@ build_libndpi() {
cd nDPI
./autogen.sh
./configure CFLAGS="-I/tmp/nfstream_build/usr/local/include" LDFLAGS="-L/tmp/nfstream_build/usr/local/lib" --with-local-libgcrypt
cd src/lib
make
cd ../..
echo "---------------------------------------------------------------------------------------------------------------"
echo ""
}
@ -77,6 +76,7 @@ fi
build_libgpgerror
build_libgcrypt
build_libndpi
rm -rf /tmp/nfstream_build

View file

@ -78,7 +78,7 @@ class BuildNativeCommand(build_ext):
)
print(build_script_command)
msys2 = shutil.which('msys2')
subprocess.check_call([msys2, "-c", build_script_command])
subprocess.check_call([msys2, "-c", build_script_command], shell=True)
else:
subprocess.check_call([str(BUILD_SCRIPT_PATH)], shell=True)
# Build engine