[ci] upload any generated clang reproducers as artifacts (#136157)

Make sure any generated clang reproducers end up as artifacts.
This commit is contained in:
Matheus Izvekov 2025-04-18 19:47:06 -03:00 committed by GitHub
parent 808f63824a
commit 2ce97fd43c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,10 +28,14 @@ if [[ -n "${CLEAR_CACHE:-}" ]]; then
ccache --clear
fi
mkdir -p artifacts/reproducers
# Make sure any clang reproducers will end up as artifacts.
export CLANG_CRASH_DIAGNOSTICS_DIR=`realpath artifacts/reproducers`
function at-exit {
retcode=$?
mkdir -p artifacts
ccache --print-stats > artifacts/ccache_stats.txt
cp "${BUILD_DIR}"/.ninja_log artifacts/.ninja_log