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.
This commit is contained in:
1 parent
08cc7dc101
commit
e456601a62
1 file changed
+20
-2
+20
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user