From cb5ff43560a216e12364b06c8004c11dcfbd0547 Mon Sep 17 00:00:00 2001 From: Alexander Kuzmenkov <36882414+akuzm@users.noreply.github.com> Date: Wed, 22 Jan 2025 19:34:11 +0100 Subject: [PATCH] Upload CMake logs to the action artifacts (#7611) For debugging. --- .github/workflows/linux-32bit-build-and-test.yaml | 14 +++++++++++++- .github/workflows/linux-build-and-test.yaml | 12 ++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linux-32bit-build-and-test.yaml b/.github/workflows/linux-32bit-build-and-test.yaml index b159f83ec7e..51fcc458cf5 100644 --- a/.github/workflows/linux-32bit-build-and-test.yaml +++ b/.github/workflows/linux-32bit-build-and-test.yaml @@ -128,7 +128,7 @@ jobs: if: always() && steps.cache-postgresql.outputs.cache-hit != 'true' uses: actions/upload-artifact@v4 with: - name: config.log for i386 PostgreSQL ${{ matrix.pg }} + name: config.log linux-i386 PG${{ matrix.pg }} path: ~/${{ env.PG_SRC_DIR }}/config.log - name: Build TimescaleDB @@ -145,6 +145,18 @@ jobs: make -C build install chown -R postgres:postgres . + - name: Upload CMake Logs + if: always() + uses: actions/upload-artifact@v4 + with: + name: CMake Logs linux-i386 PG${{ matrix.pg }} + path: | + build/CMakeCache.txt + build/CMakeFiles/CMakeConfigureLog.yaml + build/CMakeFiles/CMakeError.log + build/CMakeFiles/CMakeOutput.log + build/compile_commands.json + - name: make installcheck id: installcheck shell: bash diff --git a/.github/workflows/linux-build-and-test.yaml b/.github/workflows/linux-build-and-test.yaml index 34933021b1f..00544c3987e 100644 --- a/.github/workflows/linux-build-and-test.yaml +++ b/.github/workflows/linux-build-and-test.yaml @@ -165,6 +165,18 @@ jobs: make -j $(nproc) -C build make -C build install + - name: Upload CMake Logs + if: always() + uses: actions/upload-artifact@v4 + with: + name: CMake Logs ${{ matrix.os }} ${{ matrix.name }} ${{ matrix.pg }} + path: | + build/CMakeCache.txt + build/CMakeFiles/CMakeConfigureLog.yaml + build/CMakeFiles/CMakeError.log + build/CMakeFiles/CMakeOutput.log + build/compile_commands.json + - name: Check exported symbols run: ./build/scripts/export_prefix_check.sh