ci: build the host sidecar before the desktop Rust tests (clean checkouts)

This commit is contained in:
CRTkafa 2026-10-10 19:45:24 +00:00
parent c6e8a60b64
commit 1eb3f0768d

View file

@ -18,6 +18,8 @@ const steps: [string, string[], string?][] = [
// the release bundle must not carry the dev fixture mode (apps/desktop/tests/webview.test.ts checks dist/ when present)
['desktop bundle check', ['bun', 'test', 'apps/desktop/tests/webview.test.ts']],
...(cargo ? [
// tauri's build script needs the host sidecar binary (gitignored), so a clean checkout builds it first
['desktop sidecar (host)', ['bun', 'tools/build-sidecars.ts', '--host']],
['desktop rust tests', [cargo, 'test', '--quiet'], tauri],
['desktop clippy', [cargo, 'clippy', '--all-targets', '--quiet', '--', '-D', 'warnings'], tauri],
] as [string, string[], string][] : []),