дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-05 17:47:08 +02:00
Add `dogfood:servers` to cross-build static Linux x86_64 and aarch64 openidea-server binaries with cargo-zigbuild and stage them for upload on the next remote connection. `dogfood:all` builds the local app and the servers together, and still accepts `<remote_name>` to build natively on that host. Zig and cargo-zigbuild are declared as task-level mise tools for `dogfood:servers` and `dogfood:all` only, so `mise run setup` stays a plain `pnpm install`; the musl Rust targets are added with rustup the first time a cross build needs them. Co-authored-by: dengliu <[email protected]>
58 рядки
1.8 KiB
TOML
58 рядки
1.8 KiB
TOML
[tools]
|
|
node = "22.23.5"
|
|
# Use the JS distribution: pnpm's standalone release doesn't cover Intel Macs.
|
|
"npm:pnpm" = "11.28.12"
|
|
rust = { version = "1.100.0", profile = "minimal", components = ["rustfmt", "clippy"] }
|
|
|
|
[tasks.setup]
|
|
description = "Install frontend dependencies for this worktree"
|
|
run = "pnpm install"
|
|
|
|
[tasks.dev]
|
|
description = "Launch the desktop app with worktree isolation"
|
|
run = "pnpm tauri dev"
|
|
|
|
[tasks."dev:app"]
|
|
description = "Launch the desktop app with the global Tauri API enabled"
|
|
run = "pnpm dev:app"
|
|
|
|
[tasks.build]
|
|
description = "Typecheck, bundle and verify the frontend"
|
|
run = "pnpm build"
|
|
|
|
[tasks."dogfood:local"]
|
|
description = "Build and locally install the dogfood desktop app"
|
|
run = "pnpm dogfood:local"
|
|
|
|
[tasks."dogfood:remote"]
|
|
description = "Build and install a local dogfood openidea-server on a configured SSH remote"
|
|
run = "pnpm dogfood:remote"
|
|
|
|
# Zig and cargo-zigbuild only for the tasks that cross-build openidea-server; the musl targets are
|
|
# added on first use (scripts/dogfood.ts).
|
|
[tasks."dogfood:servers"]
|
|
description = "Cross-build and stage dogfood Linux openidea-server binaries locally"
|
|
tools = { zig = "0.17.1", "aqua:rust-cross/cargo-zigbuild" = "0.24.1" }
|
|
run = "pnpm dogfood:servers"
|
|
|
|
[tasks."dogfood:all"]
|
|
description = "Build the local dogfood desktop app and the Linux openidea-server binaries (or one SSH host's) in parallel"
|
|
tools = { zig = "0.17.1", "aqua:rust-cross/cargo-zigbuild" = "0.24.1" }
|
|
run = "pnpm dogfood:all"
|
|
|
|
[tasks.test]
|
|
description = "Run the frontend and Rust workspace tests"
|
|
run = ["pnpm test", "cargo test --workspace"]
|
|
|
|
[tasks.check]
|
|
description = "Check formatting, lint, types and unused code, then run the tests"
|
|
run = [
|
|
"pnpm format:check",
|
|
"pnpm lint",
|
|
"pnpm typecheck",
|
|
"pnpm knip",
|
|
"cargo fmt --all --check",
|
|
"cargo clippy --workspace --all-targets -- -D warnings",
|
|
{ task = "test" },
|
|
]
|