ci(release): Desktop release workflow failure in Docker runner (missing system dependencies & toolchains) #27
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem Description
The
release-desktopworkflow in.forgejo/workflows/release.ymlfailed when building the Desktop Client on the Forgejo Actionsubuntu:24.04Docker runner upon pushing tagdesktop-v1.13.0.Root Cause Analysis
1. Missing Tauri v2 Linux System Dependencies
The
desktop/src-tauricrate depends onsoup3-sysandjavascriptcore-rs-sys(via Tauri v2 WebKit integration). In Ubuntu 24.04,libwebkit2gtk-4.1-devalone does not provide all required.pcpkg-config files.libsoup-3.0.pc,javascriptcoregtk-4.1.pc.2. Missing
rustupin Ubuntu APT PackageThe workflow runs:
In Debian/Ubuntu,
cargoandrustcpackages do not include therustuptoolchain manager. The commandrustupis not found, preventing the Windows target (x86_64-pc-windows-gnu) from being installed and compiled.3. AppImage / FUSE Container Environment
Building AppImage packages inside non-privileged Docker containers fails unless
squashfs-toolsis installed andAPPIMAGE_EXTRACT_AND_RUN=1is set in the environment.Action Items & Recommended Fixes
Update APT dependencies in
.forgejo/workflows/release.yml:Install Rust via official
rustupinstaller & Node 22 via NodeSource:Set AppImage environment flags:
Verify Windows build:
Compile with
cargo build --manifest-path desktop/src-tauri/Cargo.toml --target x86_64-pc-windows-gnu --releaseensuring dependencies and executable output todist-release/inventory-manager-desktop.exe.Re-trigger release:
Delete and re-push the
desktop-v1.13.0tag (or bump to next patch) to verify the workflow execution on Forgejo Actions.Resolution Implemented in PR #28
All root causes identified in this issue have been resolved:
Added Missing System Libraries:
libsoup-3.0-dev,libjavascriptcoregtk-4.1-dev,libgtk-3-dev, andsquashfs-toolsto the APT package list in.forgejo/workflows/release.yml.Installed Official Rustup Toolchain & Node.js 22 LTS:
cargo/rustcwith officialrustupinstaller configuringx86_64-unknown-linux-gnuandx86_64-pc-windows-gnutargets.Configured AppImage Environment Variables:
APPIMAGE_EXTRACT_AND_RUN=1andNO_STRIP=truein the container workflow environment.Branches Updated:
devand open formasterin PR #28 (ready to merge upon approval).