ci: tee the installer output into an uploaded log
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Successful in 15s
VoidBuildSystem CI / 4A2 · VBS installers (windows target) (push) Failing after 1m6s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Successful in 5m2s
VoidBuildSystem CI / 4A2 · VBS installers (linux target) (push) Failing after 1m13s
VoidBuildSystem CI / 5 · Release (push) Skipped
VoidBuildSystem CI / 3A · Linux test (debug) (push) Successful in 5m2s
VoidBuildSystem CI / 1 · Requirements (push) Successful in 8s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 1m55s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 4m7s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 2m57s
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Successful in 16s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 3m35s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 49s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 1m40s

The Gitea log truncates the long compiler diagnostic lines; keep the
full vbs install output in an artifact when the installer jobs fail.
This commit is contained in:
faumaray committed 2026-12-06 12:23:51 +03:00
1 parent 08cc7dc101
commit eca1b8264e
1 file changed
+20 -2
+20 -2
View File
@@ -283,6 +283,7 @@ jobs:
- name: Build and package every installer format with VBS - name: Build and package every installer format with VBS
run: | run: |
set -eu set -eu
set -o pipefail
vbs=build/linux-relwithdebinfo/bin/vbs vbs=build/linux-relwithdebinfo/bin/vbs
version="$(sed -nE 's/^project\(VoidBuildSystem VERSION ([0-9.]+).*/\1/p' CMakeLists.txt)" version="$(sed -nE 's/^project\(VoidBuildSystem VERSION ([0-9.]+).*/\1/p' CMakeLists.txt)"
label="${{ github.event.inputs.tag }}" label="${{ github.event.inputs.tag }}"
@@ -304,7 +305,7 @@ jobs:
--jobs 4 --prefix "${prefix}" --package-name VoidBuildSystem \ --jobs 4 --prefix "${prefix}" --package-name VoidBuildSystem \
--package-version "${version}" \ --package-version "${version}" \
--archive "${out}/vbs-${label}-linux-x86_64-${fmt}.${ext}" \ --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 return 0
fi fi
if [ "${attempt}" -ge 2 ]; then if [ "${attempt}" -ge 2 ]; then
@@ -326,6 +327,14 @@ jobs:
install_archive "${fmt}" "${ext}" install_archive "${fmt}" "${ext}"
done done
ls -l "${out}/" 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 - name: Collect installer diagnostics
if: failure() if: failure()
run: | run: |
@@ -362,6 +371,7 @@ jobs:
- name: Build and package the Windows installers with VBS - name: Build and package the Windows installers with VBS
run: | run: |
set -eu set -eu
set -o pipefail
vbs=build/linux-relwithdebinfo/bin/vbs vbs=build/linux-relwithdebinfo/bin/vbs
version="$(sed -nE 's/^project\(VoidBuildSystem VERSION ([0-9.]+).*/\1/p' CMakeLists.txt)" version="$(sed -nE 's/^project\(VoidBuildSystem VERSION ([0-9.]+).*/\1/p' CMakeLists.txt)"
label="${{ github.event.inputs.tag }}" label="${{ github.event.inputs.tag }}"
@@ -387,9 +397,17 @@ jobs:
--prefix "${prefix}" --package-name VoidBuildSystem \ --prefix "${prefix}" --package-name VoidBuildSystem \
--package-version "${version}" \ --package-version "${version}" \
--archive "${out}/vbs-${label}-windows-x86_64-${fmt}.${ext}" \ --archive "${out}/vbs-${label}-windows-x86_64-${fmt}.${ext}" \
--archive-format "${fmt}" --archive-format "${fmt}" 2>&1 | tee -a installers-windows.log
done done
ls -l "${out}/" 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 - name: Upload the Windows installers
if: always() if: always()
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3