Commit 06c6f9a971be5239ebfbac6aaa757a86085c1598
1 parent
d14765f1
Enable verbose build for CI
That way we can always ensure that the right compiler flags are being used if there is an issue.
Showing
7 changed files
with
7 additions
and
7 deletions
build-scripts/build-doc
| @@ -8,7 +8,7 @@ sudo apt-get -y install \ | @@ -8,7 +8,7 @@ sudo apt-get -y install \ | ||
| 8 | python3-pip texlive-latex-extra latexmk | 8 | python3-pip texlive-latex-extra latexmk |
| 9 | pip3 install sphinx sphinx_rtd_theme | 9 | pip3 install sphinx sphinx_rtd_theme |
| 10 | cmake -S . -B build -DBUILD_DOC=1 | 10 | cmake -S . -B build -DBUILD_DOC=1 |
| 11 | -cmake --build build --target doc_dist | 11 | +cmake --build build --verbose --target doc_dist |
| 12 | zip -r doc.zip build/manual/doc-dist | 12 | zip -r doc.zip build/manual/doc-dist |
| 13 | version=$(grep -E '^release' manual/conf.py | cut -d"'" -f 2) | 13 | version=$(grep -E '^release' manual/conf.py | cut -d"'" -f 2) |
| 14 | mv build/manual/doc-dist qpdf-${version}-doc | 14 | mv build/manual/doc-dist qpdf-${version}-doc |
build-scripts/build-linux
| @@ -6,7 +6,7 @@ sudo apt-get -y install \ | @@ -6,7 +6,7 @@ sudo apt-get -y install \ | ||
| 6 | libssl-dev libtiff-tools ghostscript | 6 | libssl-dev libtiff-tools ghostscript |
| 7 | cmake -S . -B build -DCI_MODE=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo \ | 7 | cmake -S . -B build -DCI_MODE=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo \ |
| 8 | -DREQUIRE_CRYPTO_OPENSSL=1 -DREQUIRE_CRYPTO_GNUTLS=1 | 8 | -DREQUIRE_CRYPTO_OPENSSL=1 -DREQUIRE_CRYPTO_GNUTLS=1 |
| 9 | -cmake --build build -j$(nproc) -- -k | 9 | +cmake --build build --verbose -j$(nproc) -- -k |
| 10 | cd build | 10 | cd build |
| 11 | # Make sure char is signed by default -- see also test-unsigned-char | 11 | # Make sure char is signed by default -- see also test-unsigned-char |
| 12 | ./qpdf/test_char_sign | grep 'char is signed' | 12 | ./qpdf/test_char_sign | grep 'char is signed' |
build-scripts/build-linux32
| @@ -10,5 +10,5 @@ CFLAGS=-m32 CXXFLAGS=-m32 LDFLAGS=-m32 \ | @@ -10,5 +10,5 @@ CFLAGS=-m32 CXXFLAGS=-m32 LDFLAGS=-m32 \ | ||
| 10 | cmake -S . -B build -DCI_MODE=1 -DCMAKE_BUILD_TYPE=Release \ | 10 | cmake -S . -B build -DCI_MODE=1 -DCMAKE_BUILD_TYPE=Release \ |
| 11 | -DUSE_IMPLICIT_CRYPTO=0 -DBUILD_STATIC_LIBS=0 \ | 11 | -DUSE_IMPLICIT_CRYPTO=0 -DBUILD_STATIC_LIBS=0 \ |
| 12 | -DREQUIRE_CRYPTO_NATIVE=1 | 12 | -DREQUIRE_CRYPTO_NATIVE=1 |
| 13 | -cmake --build build -j$(nproc) -- -k | 13 | +cmake --build build --verbose -j$(nproc) -- -k |
| 14 | (cd build; ctest --verbose) | 14 | (cd build; ctest --verbose) |
build-scripts/build-mac
| @@ -9,5 +9,5 @@ make -k | @@ -9,5 +9,5 @@ make -k | ||
| 9 | sudo make install | 9 | sudo make install |
| 10 | cd .. | 10 | cd .. |
| 11 | cmake -S . -B build -DCI_MODE=1 -DCMAKE_BUILD_TYPE=Release | 11 | cmake -S . -B build -DCI_MODE=1 -DCMAKE_BUILD_TYPE=Release |
| 12 | -cmake --build build -j$(sysctl -n hw.ncpu) -- -k | 12 | +cmake --build build --verbose -j$(sysctl -n hw.ncpu) -- -k |
| 13 | (cd build; ctest --verbose) | 13 | (cd build; ctest --verbose) |
build-scripts/build-windows
| @@ -32,7 +32,7 @@ unzip qpdf-external-libs-bin.zip | @@ -32,7 +32,7 @@ unzip qpdf-external-libs-bin.zip | ||
| 32 | 32 | ||
| 33 | cd build | 33 | cd build |
| 34 | ../cmake-win $tool ci | 34 | ../cmake-win $tool ci |
| 35 | -cmake --build . -j$(nproc) "${cmake_xargs[@]}" | 35 | +cmake --build . --verbose -j$(nproc) "${cmake_xargs[@]}" |
| 36 | ctest --verbose "${ctest_xargs[@]}" | 36 | ctest --verbose "${ctest_xargs[@]}" |
| 37 | cpack -G NSIS -C $config | 37 | cpack -G NSIS -C $config |
| 38 | cpack -G ZIP -C $config | 38 | cpack -G ZIP -C $config |
build-scripts/test-sanitizers
| @@ -12,7 +12,7 @@ env CFLAGS="-fsanitize=address -fsanitize=undefined" \ | @@ -12,7 +12,7 @@ env CFLAGS="-fsanitize=address -fsanitize=undefined" \ | ||
| 12 | -DCI_MODE=1 -DBUILD_SHARED_LIBS=0 -DCMAKE_BUILD_TYPE=Debug \ | 12 | -DCI_MODE=1 -DBUILD_SHARED_LIBS=0 -DCMAKE_BUILD_TYPE=Debug \ |
| 13 | -DREQUIRE_CRYPTO_OPENSSL=1 -DREQUIRE_CRYPTO_GNUTLS=1 \ | 13 | -DREQUIRE_CRYPTO_OPENSSL=1 -DREQUIRE_CRYPTO_GNUTLS=1 \ |
| 14 | -DENABLE_QTC=1 | 14 | -DENABLE_QTC=1 |
| 15 | -cmake --build build -j$(nproc) -- -k | 15 | +cmake --build build --verbose -j$(nproc) -- -k |
| 16 | cd build | 16 | cd build |
| 17 | # libtests automatically runs with all crypto providers. | 17 | # libtests automatically runs with all crypto providers. |
| 18 | ctest --verbose | 18 | ctest --verbose |
build-scripts/test-unsigned-char
| @@ -13,7 +13,7 @@ env CFLAGS="-funsigned-char" \ | @@ -13,7 +13,7 @@ env CFLAGS="-funsigned-char" \ | ||
| 13 | -DCI_MODE=1 -DBUILD_STATIC_LIBS=0 -DCMAKE_BUILD_TYPE=Release \ | 13 | -DCI_MODE=1 -DBUILD_STATIC_LIBS=0 -DCMAKE_BUILD_TYPE=Release \ |
| 14 | -DREQUIRE_CRYPTO_OPENSSL=1 -DREQUIRE_CRYPTO_GNUTLS=1 \ | 14 | -DREQUIRE_CRYPTO_OPENSSL=1 -DREQUIRE_CRYPTO_GNUTLS=1 \ |
| 15 | -DENABLE_QTC=1 | 15 | -DENABLE_QTC=1 |
| 16 | -cmake --build build -j$(nproc) -- -k | 16 | +cmake --build build --verbose -j$(nproc) -- -k |
| 17 | cd build | 17 | cd build |
| 18 | # Make sure char is unsigned by default. ./build-linux verifies that | 18 | # Make sure char is unsigned by default. ./build-linux verifies that |
| 19 | # that build has char signed by default. That way we can be sure we | 19 | # that build has char signed by default. That way we can be sure we |