Skip to content

ci: faster builds — drop rpm, add Swatinem/rust-cache#6

Merged
lagosproject merged 1 commit into
mainfrom
ci/faster-linux-builds
Jun 10, 2026
Merged

ci: faster builds — drop rpm, add Swatinem/rust-cache#6
lagosproject merged 1 commit into
mainfrom
ci/faster-linux-builds

Conversation

@lagosproject

Copy link
Copy Markdown
Owner

Why

Tagged release builds were slow (~30–45 min on Linux). Two causes:

  1. Cold Rust compiles — the actions/cache step over src-tauri/target was effectively a no-op (restored nothing), so every build recompiled the whole dependency tree (ort/ONNX, Tauri, image crates) in release mode from scratch.
  2. bundle.targets: "all" built .deb + .rpm + .AppImage on Linux, each compressing the large payload (binary + bundled ONNX model). .rpm is the slow compressor and only serves Fedora/RHEL.

Changes

  • Drop rpm from bundle targets (explicit list, otherwise identical to all for mac/windows). .deb already gives a proper installed experience on Debian/Ubuntu (apps menu, icon, apt remove); .AppImage stays as the portable option.
  • Swap actions/cacheSwatinem/rust-cache — purpose-built for cargo, reliably caches the registry + compiled deps per workspace/target. Subsequent builds reuse deps instead of recompiling from scratch.

Notes

  • Separate from the v0.1.3 render fix; CI/config only, no app code, no version bump.
  • Unrelated pre-existing issue: macOS bundle_dmg.sh is flaky on GitHub runners (failed on v0.1.3 at the DMG step after a successful compile). Can be addressed separately if desired.

🤖 Generated with Claude Code

- bundle.targets: explicit list ["deb","appimage","app","dmg","nsis","msi"]
  instead of "all" — drops the rpm target. .deb already provides a proper
  installed experience (apt, apps menu, icon) on Debian/Ubuntu; rpm only
  serves Fedora/RHEL and was the slow payload-compression step.
- Replace the unreliable actions/cache over src-tauri/target with
  Swatinem/rust-cache, which reliably caches cargo registry + compiled
  deps per workspace/target, avoiding full from-scratch release recompiles
  on every tagged build.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@lagosproject lagosproject merged commit 699aa11 into main Jun 10, 2026
3 checks passed
@lagosproject lagosproject deleted the ci/faster-linux-builds branch June 10, 2026 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants