cpack debug

This commit is contained in:
tooomm
2026-07-27 11:41:04 +02:00
parent ee1a7815e9
commit 6cba8b7c64
3 changed files with 22 additions and 6 deletions
+21 -3
View File
@@ -328,10 +328,14 @@ if [[ $USE_CCACHE == 1 ]]; then
ccache --show-stats
ccache --show-compression
echo " -----"
ccache --show-stats --verbose
ccache --show-compression
echo " -----"
ccache --zero-stats
echo " -----"
ccache --show-stats
ccache --show-compression
echo " -----"
ccache --show-stats --verbose
echo "::endgroup::"
fi
@@ -339,7 +343,7 @@ fi
### Build
# Configure CMake
echo "::group::Configure CMake"
echo "::group::Generate buildsystem"
cmake --version
echo "Running CMake configuration with following flags: ${flags[*]}"
cmake -S . -B "$BUILD_DIR" "${flags[@]}"
@@ -405,9 +409,23 @@ fi
# Package
if [[ $MAKE_PACKAGE == 1 ]]; then
echo "::group::Debug NSIS / CPack"
cat "_CPack_Packages/win64/NSIS/NSISOutput.log"
echo " -----"
find . -name "NSIS.definitions.nsh"
find "$BUILD_DIR" -name "NSIS.definitions.nsh"
ls -l "$BUILD_DIR/NSIS.definitions.nsh"
echo "::endgroup:"
echo "::group::Create package"
cpack --version
cpack --config "$BUILD_DIR/CPackConfig.cmake"
(
cd "$BUILD_DIR"
cpack
)
# cpack --config "$BUILD_DIR/CPackConfig.cmake"
# cmake --build "$BUILD_DIR" --target package
#TODO included --config? compare with former isntall and other --target variants used
echo "::endgroup::"
if [[ -n $PACKAGE_SUFFIX ]]; then
-2
View File
@@ -32,7 +32,6 @@ case $err in
*** ***
***********************************************************
Exiting...
EOM
exit 2
;;
@@ -48,7 +47,6 @@ EOM
*** ***
***********************************************************
Exiting...
EOM
exit 0
;;
+1 -1
View File
@@ -14,7 +14,7 @@ cd "${BASH_SOURCE%/*}/" || exit 2 # could not find path, this could happen with
# Defaults
include=("cockatrice/src" \
libcockatrice_* \
libcockatrice_* \
"oracle/src" \
"servatrice/src" \
"tests")