From eca1b8264e598c176e6d2f82de57bcdd24425682 Mon Sep 17 00:00:00 2001 From: "Aleksei (Faumaray) Selikhov" Date: Sun, 6 Dec 2026 12:23:51 +0300 Subject: [PATCH] ci: tee the installer output into an uploaded log The Gitea log truncates the long compiler diagnostic lines; keep the full vbs install output in an artifact when the installer jobs fail. --- .gitea/workflows/ci.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index c9f4397..6b70449 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -283,6 +283,7 @@ jobs: - name: Build and package every installer format with VBS run: | set -eu + set -o pipefail vbs=build/linux-relwithdebinfo/bin/vbs version="$(sed -nE 's/^project\(VoidBuildSystem VERSION ([0-9.]+).*/\1/p' CMakeLists.txt)" label="${{ github.event.inputs.tag }}" @@ -304,7 +305,7 @@ jobs: --jobs 4 --prefix "${prefix}" --package-name VoidBuildSystem \ --package-version "${version}" \ --archive "${out}/vbs-${label}-linux-x86_64-${fmt}.${ext}" \ - --archive-format "${fmt}"; then + --archive-format "${fmt}" 2>&1 | tee -a installers-linux.log; then return 0 fi if [ "${attempt}" -ge 2 ]; then @@ -326,6 +327,14 @@ jobs: install_archive "${fmt}" "${ext}" done ls -l "${out}/" + - name: Upload the installer log + if: failure() + uses: actions/upload-artifact@v3 + with: + name: vbs-installers-linux-log + path: installers-linux.log + if-no-files-found: ignore + retention-days: 14 - name: Collect installer diagnostics if: failure() run: | @@ -362,6 +371,7 @@ jobs: - name: Build and package the Windows installers with VBS run: | set -eu + set -o pipefail vbs=build/linux-relwithdebinfo/bin/vbs version="$(sed -nE 's/^project\(VoidBuildSystem VERSION ([0-9.]+).*/\1/p' CMakeLists.txt)" label="${{ github.event.inputs.tag }}" @@ -387,9 +397,17 @@ jobs: --prefix "${prefix}" --package-name VoidBuildSystem \ --package-version "${version}" \ --archive "${out}/vbs-${label}-windows-x86_64-${fmt}.${ext}" \ - --archive-format "${fmt}" + --archive-format "${fmt}" 2>&1 | tee -a installers-windows.log done ls -l "${out}/" + - name: Upload the installer log + if: failure() + uses: actions/upload-artifact@v3 + with: + name: vbs-installers-windows-log + path: installers-windows.log + if-no-files-found: ignore + retention-days: 14 - name: Upload the Windows installers if: always() uses: actions/upload-artifact@v3