Hash :
adc7913d
Author :
Date :
2025-04-19T16:46:21
gitlab-ci: Avoid redundant builds of libxml2 and libxslt Build and install libxml2 and libxslt in a new "gcc-install" job and publish the build as artifact. Make the downstream tests use the artifact instead of building the libraries redundantly.
#!/bin/sh
set -e
srcdir=$(pwd)
installdir="$srcdir/install"
incdir="$installdir/include/libxml2"
libdir="$installdir/lib"
git clone --depth 1 -b test-suite-libxml2 \
https://github.com/nwellnhof/perl-XML-LibXML.git
cd perl-XML-LibXML
perl Makefile.PL INC="-I$incdir" LIBS="-L$libdir -lxml2"
make
make test