Skip to content

ci(desktop): use the prebuilt tauri-cli from npm - #776

Merged
LargeModGames merged 1 commit into
mainfrom
ci/desktop-prebuilt-tauri-cli
Oct 12, 2026
Merged

LargeModGames merged 1 commit into
mainfrom
ci/desktop-prebuilt-tauri-cli

Conversation

@LargeModGames

@LargeModGames LargeModGames commented Oct 12, 2026 •

Copy link
Copy Markdown
Owner

Summary

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.

Testing

npx --yes @tauri-apps/[email protected] --version
tauri-cli 2.12.2
npx --yes @tauri-apps/[email protected] build --help
  -b, --bundles [<BUNDLES>...]
  -c, --config <CONFIG>
      --ci
npx --yes [email protected] valid < .github/workflows/cd.yml
cd.yml: valid YAML

Additional notes

The desktop job 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

  • Chores
    • Updated the desktop release build process. No changes to app features or behavior are included in this update.

@coderabbitai

coderabbitai Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: LargeModGames/spotatui/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4d9b77df-5595-421a-879f-59593e5fde4d

📥 Commits

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.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Refactor


Merge Risk: ⚪ Minimal · up to 2845e

The release workflow uses the pinned Tauri CLI with compatible options across its configured runners; no material merge risk remains.

Pre-merge checks | Passed 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Oct 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@LargeModGames
LargeModGames merged commit 45140ef into main Oct 12, 2026
36 checks passed
@LargeModGames
LargeModGames deleted the ci/desktop-prebuilt-tauri-cli branch October 12, 2026 15:38
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.

1 participant