This is an automated email from the ASF dual-hosted git repository.
bneradt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/trafficserver-ci.git
The following commit(s) were added to refs/heads/main by this push:
new 9db21ed Build libswoc out of source for rocky PR builds (#324)
9db21ed is described below
commit 9db21ed09724304ec9cb349fbaf120d1a5778c45
Author: Brian Neradt <[email protected]>
AuthorDate: Thu Mar 21 17:15:27 2024 -0500
Build libswoc out of source for rocky PR builds (#324)
---
jenkins/github/rocky.pipeline | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/jenkins/github/rocky.pipeline b/jenkins/github/rocky.pipeline
index f2493c2..2f5b3ac 100644
--- a/jenkins/github/rocky.pipeline
+++ b/jenkins/github/rocky.pipeline
@@ -67,7 +67,23 @@ pipeline {
if [ -d cmake ]
then
- cmake -B build --preset ci-rocky
+ # Retrieve the libswoc version we use in ATS.
+ swoc_version=$(awk '/set\(LIBSWOC_VERSION/ {print
$NF}' lib/swoc/CMakeLists.txt | tr -d ')"')
+
+ pushd /var/tmp
+ git clone
https://github.com/apache/trafficserver-libswoc.git
+ pushd trafficserver-libswoc
+ git checkout ${swoc_version}
+ pipenv install
+ pipenv run scons -j`nproc` all
+ popd
+ popd
+
libswoc_dir=/var/tmp/trafficserver-libswoc/_install/debug_posix-$(uname
-m)_default
+
+ # Now build ATS, using the external libswoc.
+ PKG_CONFIG_PATH=${libswoc_dir}/lib/pkgconfig \
+ cmake -B build --preset ci-rocky \
+ -DEXTERNAL_LIBSWOC=ON
-Dlibswoc_ROOT=${libswoc_dir}
cmake --build build -v
cmake --install build
pushd build