mirror of
https://github.com/qpdf/qpdf.git
synced 2025-01-02 22:50:20 +00:00
Actually run windows builds in Release mode in CI
This commit is contained in:
parent
4bc7b6ceba
commit
2028e35928
@ -30,7 +30,7 @@ unzip doc.zip
|
|||||||
unzip qpdf-external-libs-bin.zip
|
unzip qpdf-external-libs-bin.zip
|
||||||
|
|
||||||
cd build
|
cd build
|
||||||
../cmake-win $tool ci
|
../cmake-win $tool ci $config
|
||||||
cmake --build . --verbose -j$(nproc) "${cmake_xargs[@]}"
|
cmake --build . --verbose -j$(nproc) "${cmake_xargs[@]}"
|
||||||
ctest --verbose "${ctest_xargs[@]}"
|
ctest --verbose "${ctest_xargs[@]}"
|
||||||
cpack -G NSIS -C $config
|
cpack -G NSIS -C $config
|
||||||
|
13
cmake-win
13
cmake-win
@ -3,6 +3,7 @@ set -e
|
|||||||
whoami=$(basename $0)
|
whoami=$(basename $0)
|
||||||
tool=$1
|
tool=$1
|
||||||
mode=$2
|
mode=$2
|
||||||
|
config=${3-RelWithDebInfo}
|
||||||
|
|
||||||
dir=$(realpath --relative-to . $(dirname $0))
|
dir=$(realpath --relative-to . $(dirname $0))
|
||||||
if [ "$dir" = "." ]; then
|
if [ "$dir" = "." ]; then
|
||||||
@ -12,13 +13,13 @@ fi
|
|||||||
declare -a args
|
declare -a args
|
||||||
case $tool in
|
case $tool in
|
||||||
msvc)
|
msvc)
|
||||||
args=(-DCMAKE_BUILD_TYPE=RelWithDebInfo)
|
args=(-DCMAKE_BUILD_TYPE=$config)
|
||||||
if cl 2>&1 | grep -q 'for x86'; then
|
if cl 2>&1 | grep -q 'for x86'; then
|
||||||
args=("${args[@]}" -A win32)
|
args=("${args[@]}" -A win32)
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
mingw)
|
mingw)
|
||||||
args=(-G 'MSYS Makefiles' -DCMAKE_BUILD_TYPE=RelWithDebInfo)
|
args=(-G 'MSYS Makefiles' -DCMAKE_BUILD_TYPE=$config)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo 1>&2 "Usage: $whoami {msvc|mingw}"
|
echo 1>&2 "Usage: $whoami {msvc|mingw}"
|
||||||
@ -36,9 +37,9 @@ cmake "${args[@]}" $dir
|
|||||||
set +x
|
set +x
|
||||||
if [ "$tool" = "msvc" ]; then
|
if [ "$tool" = "msvc" ]; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "*****************************************************************"
|
echo "***"
|
||||||
echo "*** Remember to pass --config RelWithDebInfo to cmake --build ***"
|
echo "*** Remember to pass --config $config to cmake --build"
|
||||||
echo "*** and -C RelWithDebInfo to ctest ***"
|
echo "*** and -C $config to ctest"
|
||||||
echo "*****************************************************************"
|
echo "***"
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user