ci: faster builds — drop rpm, add Swatinem/rust-cache#6
Merged
Conversation
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Tagged release builds were slow (~30–45 min on Linux). Two causes:
actions/cachestep oversrc-tauri/targetwas effectively a no-op (restored nothing), so every build recompiled the whole dependency tree (ort/ONNX, Tauri, image crates) in release mode from scratch.bundle.targets: "all"built.deb+.rpm+.AppImageon Linux, each compressing the large payload (binary + bundled ONNX model)..rpmis the slow compressor and only serves Fedora/RHEL.Changes
rpmfrom bundle targets (explicit list, otherwise identical toallfor mac/windows)..debalready gives a proper installed experience on Debian/Ubuntu (apps menu, icon,apt remove);.AppImagestays as the portable option.actions/cache→Swatinem/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
bundle_dmg.shis 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