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-stats
ccache --show-compression ccache --show-compression
echo " -----" echo " -----"
ccache --show-stats --verbose
ccache --show-compression
echo " -----"
ccache --zero-stats ccache --zero-stats
echo " -----" echo " -----"
ccache --show-stats ccache --show-stats
ccache --show-compression echo " -----"
ccache --show-stats --verbose
echo "::endgroup::" echo "::endgroup::"
fi fi
@@ -339,7 +343,7 @@ fi
### Build ### Build
# Configure CMake # Configure CMake
echo "::group::Configure CMake" echo "::group::Generate buildsystem"
cmake --version cmake --version
echo "Running CMake configuration with following flags: ${flags[*]}" echo "Running CMake configuration with following flags: ${flags[*]}"
cmake -S . -B "$BUILD_DIR" "${flags[@]}" cmake -S . -B "$BUILD_DIR" "${flags[@]}"
@@ -405,9 +409,23 @@ fi
# Package # Package
if [[ $MAKE_PACKAGE == 1 ]]; then 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" echo "::group::Create package"
cpack --version 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::" echo "::endgroup::"
if [[ -n $PACKAGE_SUFFIX ]]; then if [[ -n $PACKAGE_SUFFIX ]]; then
-2
View File
@@ -32,7 +32,6 @@ case $err in
*** *** *** ***
*********************************************************** ***********************************************************
Exiting...
EOM EOM
exit 2 exit 2
;; ;;
@@ -48,7 +47,6 @@ EOM
*** *** *** ***
*********************************************************** ***********************************************************
Exiting...
EOM EOM
exit 0 exit 0
;; ;;
+1 -1
View File
@@ -14,7 +14,7 @@ cd "${BASH_SOURCE%/*}/" || exit 2 # could not find path, this could happen with
# Defaults # Defaults
include=("cockatrice/src" \ include=("cockatrice/src" \
libcockatrice_* \ libcockatrice_* \
"oracle/src" \ "oracle/src" \
"servatrice/src" \ "servatrice/src" \
"tests") "tests")