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

This commit is contained in:
CRTkafa 2026-10-11 03:45:24 +08:00
parent 6e58f74b65
commit 0ce0c51ff6

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) // 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']], ['desktop bundle check', ['bun', 'test', 'apps/desktop/tests/webview.test.ts']],
...(cargo ? [ ...(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 rust tests', [cargo, 'test', '--quiet'], tauri],
['desktop clippy', [cargo, 'clippy', '--all-targets', '--quiet', '--', '-D', 'warnings'], tauri], ['desktop clippy', [cargo, 'clippy', '--all-targets', '--quiet', '--', '-D', 'warnings'], tauri],
] as [string, string[], string][] : []), ] as [string, string[], string][] : []),