You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci(desktop): use the prebuilt tauri-cli from npm - #776
The desktop release job compiled tauri-cli from source on every row (cargo install tauri-cli --version 2.12.2 --locked). In the v0.45.0 run that step alone took up to 19 minutes on the Intel Mac runner, longer than the app build on most rows. The job now runs the same CLI version from npm, npx --yes @tauri-apps/[email protected], which ships prebuilt binaries for all five release targets (darwin-x64, darwin-arm64, linux-x64-gnu, linux-arm64-gnu, win32-x64-msvc). Node 24 is already set up in that job for the page build.
I did not add a Rust cache: a tag run can only read caches of its own tag and of main, and main never makes the release-profile (LTO) build, so a cache would not help these builds.
Reviewing files that changed from the base of the PR and between 5d2e8b7 and 2845ed7.
📒 Files selected for processing (2)
.github/workflows/AGENTS.md
.github/workflows/cd.yml
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.
📝 Walkthrough
Walkthrough
The release workflow and its instructions replace the Cargo-installed Tauri CLI command with npx @tauri-apps/[email protected]. The workflow retains its bundle options, updater configuration, and signing-key environment variables.
Changes
Tauri CLI Invocation
Layer / File(s)
Summary
Release build command and instructions .github/workflows/AGENTS.md, .github/workflows/cd.yml
The workflow invokes @tauri-apps/[email protected] through npx instead of installing and invoking tauri-cli through Cargo. The instructions describe the same command. The gui/dist build step and workflow build options remain.
The release workflow uses the pinned Tauri CLI with compatible options across its configured runners; no material merge risk remains.
Pre-merge checks | 4
✅ Passed checks (4 passed)
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title uses the allowed ci: prefix with the desktop scope. It concisely and accurately describes the workflow change to use the prebuilt Tauri CLI from npm.
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
Commit to this branch
Create a new PR
✨ Simplify code
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
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
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.
Summary
The
desktoprelease job compiledtauri-clifrom source on every row (cargo install tauri-cli --version 2.12.2 --locked). In the v0.45.0 run that step alone took up to 19 minutes on the Intel Mac runner, longer than the app build on most rows. The job now runs the same CLI version from npm,npx --yes @tauri-apps/[email protected], which ships prebuilt binaries for all five release targets (darwin-x64, darwin-arm64, linux-x64-gnu, linux-arm64-gnu, win32-x64-msvc). Node 24 is already set up in that job for the page build.I did not add a Rust cache: a tag run can only read caches of its own tag and of
main, andmainnever makes the release-profile (LTO) build, so a cache would not help these builds.Testing
Additional notes
The
desktopjob runs on tags only, so this PR's CI does not run it. The next release tag (or an rc tag) is its first real run.💬 Questions or want to chat with other contributors? Join the spotatui Discord.
Summary by CodeRabbit