TSG-9682 PacketAdapter运行CI时同时构建CentOS7/CentOS8运行环境的安装包

This commit is contained in:
luwenpeng
2022-02-21 16:50:38 +08:00
parent 5f93470647
commit 1063574ca0
3 changed files with 136 additions and 19 deletions

View File

@@ -33,9 +33,7 @@ env | sort
: "${COMPILER_IS_GNUCXX:=OFF}"
# Install dependency from YUM
yum install -y libasan
#yum install -y libmnl-devel libnfnetlink-devel
yum install -y libnetfilter_queue-devel
if [ $ASAN_OPTION ];then
source /opt/rh/devtoolset-7/enable
@@ -60,6 +58,6 @@ fi
if [ -n "${UPLOAD_SYMBOL_FILES}" ]; then
rpm -i packetadapter*debuginfo*.rpm
cp /usr/lib/debug/opt/tsg/packetadapter/bin/packetadapter.debug /tmp/packetadapter.debuginfo.${CI_COMMIT_SHORT_SHA}
cp /usr/lib/debug/opt/tsg/packetadapter/bin/packetadapter*debug /tmp/packetadapter.debuginfo.${CI_COMMIT_SHORT_SHA}
sentry-cli upload-dif -t elf /tmp/packetadapter.debuginfo.${CI_COMMIT_SHORT_SHA}
fi