From 8173030b1a741e5d9d6934a4e5f11f8f3d2d0b24 Mon Sep 17 00:00:00 2001 From: Shantur Rathore Date: Tue, 21 Apr 2026 07:35:22 +0100 Subject: [PATCH] fix(ci): log Linux Tauri bundle diagnostics --- .github/workflows/build-and-upload.yml | 37 +++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-upload.yml b/.github/workflows/build-and-upload.yml index 3f8aef8d..683c8106 100644 --- a/.github/workflows/build-and-upload.yml +++ b/.github/workflows/build-and-upload.yml @@ -651,7 +651,42 @@ jobs: - name: Build Linux bundle (Tauri) working-directory: packages/tauri-app - run: npm exec -- tauri build + shell: bash + env: + RUST_BACKTRACE: full + RUST_LOG: tauri_bundler=trace + TAURI_LOG_LEVEL: debug + run: | + set -uo pipefail + + build_log="$RUNNER_TEMP/tauri-linux-build.log" + status=0 + + npm exec -- tauri build 2>&1 | tee "$build_log" || status=$? + + if [ "$status" -eq 0 ]; then + exit 0 + fi + + echo "Tauri Linux bundle failed with exit code $status" >&2 + + echo "::group::Tauri build log tail" + tail -n 200 "$build_log" || true + echo "::endgroup::" + + echo "::group::Bundle output tree" + find target -maxdepth 6 \( -type d -o -type f \) | sort || true + echo "::endgroup::" + + echo "::group::Likely linuxdeploy temp files" + find /tmp -maxdepth 3 \( -iname '*linuxdeploy*' -o -iname '*appimage*' -o -iname '*.desktop' -o -iname '*.log' \) | sort || true + echo "::endgroup::" + + echo "::group::Bundle metadata files" + find target -maxdepth 8 -type f \( -name '*.desktop' -o -name 'AppRun' -o -name '*.AppImage' -o -name '*.log' -o -name '*.json' \) | sort || true + echo "::endgroup::" + + exit "$status" - name: Package Tauri artifacts (Linux) if: ${{ inputs.upload || inputs.upload_actions_artifacts }}