libxml2/.gitlab-ci/test_cmake.sh
Nick Wellnhofer 62d4697db6 gitlab-ci: Disable cmake:mingw for now
Executing /mingw64/bin/cmake.exe with any arguments fails without error
message and exit code 127 since 2025-01-21. I have no idea why.
2025-02-02 18:07:14 +01:00

19 lines
462 B
Bash

#!/bin/sh
set -e
CFLAGS="-Werror $CFLAGS" \
cmake "$@" \
-DBUILD_SHARED_LIBS=$BUILD_SHARED_LIBS \
-DCMAKE_INSTALL_PREFIX=libxml2-install \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-S . -B libxml2-build
cmake --build libxml2-build --target install
(cd libxml2-build && ctest -VV)
mkdir -p libxml2-install/share/libxml2
cp Copyright libxml2-install/share/libxml2
(cd libxml2-install &&
tar -czf ../libxml2-$CI_COMMIT_SHORT_SHA-$SUFFIX.tar.gz *)