From: Joel Rosdahl Date: Wed, 27 Aug 2025 18:57:45 +0000 (+0200) Subject: ci: Add traces to CI jobs to make debug cycle shorter X-Git-Tag: v4.12~27 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=053a79490744681d3623835f5127dbf301b55ea1;p=thirdparty%2Fccache.git ci: Add traces to CI jobs to make debug cycle shorter --- diff --git a/ci/build-and-verify-package b/ci/build-and-verify-package index c9a95d3e..4a067965 100755 --- a/ci/build-and-verify-package +++ b/ci/build-and-verify-package @@ -1,6 +1,6 @@ #!/bin/sh -set -eu +set -eux # Ninja builds with relative paths so that ccache can be used to cache the build # without resorting to setting base_dir. diff --git a/ci/build-and-verify-source-package b/ci/build-and-verify-source-package index d74bc152..dc7375ed 100755 --- a/ci/build-and-verify-source-package +++ b/ci/build-and-verify-source-package @@ -3,7 +3,7 @@ # Test that it works to build from a source archive exported by "git archive" # outside a Git repository. -set -eu +set -eux # Unset CI variable to trigger ccache user build mode. unset CI diff --git a/ci/build-binary b/ci/build-binary index ff72a0e6..cd3b1c76 100755 --- a/ci/build-binary +++ b/ci/build-binary @@ -1,6 +1,6 @@ #!/bin/sh -set -eu +set -eux : ${CMAKE_PARAMS:=} @@ -15,3 +15,6 @@ cmake \ .. cmake --build . cmake --install . --strip + +cd .. +find install -ls diff --git a/ci/build-darwin-binary b/ci/build-darwin-binary index 7cf9b38b..2e4e018d 100755 --- a/ci/build-darwin-binary +++ b/ci/build-darwin-binary @@ -1,6 +1,6 @@ #!/bin/sh -set -eu +set -eux build() { mkdir -p "build_$1" @@ -29,3 +29,5 @@ done mkdir -p install/bin lipo -create $FILES -output install/bin/ccache lipo -info install/bin/ccache + +find install -ls diff --git a/ci/build-docs b/ci/build-docs index 2a9d42d2..07540a90 100755 --- a/ci/build-docs +++ b/ci/build-docs @@ -1,6 +1,6 @@ #!/bin/sh -set -eu +set -eux dir=build cmake -B "${dir}" -D CMAKE_INSTALL_PREFIX="$(pwd)/install" diff --git a/ci/install-cuda b/ci/install-cuda index 4518316d..03d6844a 100755 --- a/ci/install-cuda +++ b/ci/install-cuda @@ -2,7 +2,7 @@ # # Version is given in the CUDA variable. -set -eu +set -eux retry() { local i=0