mirror of
https://github.com/NVIDIA/OpenShell.git
synced 2026-10-15 05:09:44 +08:00
70 lines
1.8 KiB
TOML
70 lines
1.8 KiB
TOML
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# CI, build, and quality tasks
|
|
|
|
[build]
|
|
description = "Build the whole project"
|
|
depends = ["build:rust:workspace", "build:docker", "build:python:wheel"]
|
|
|
|
["build:rust"]
|
|
description = "Alias for build:rust:workspace"
|
|
depends = ["build:rust:workspace"]
|
|
hide = true
|
|
|
|
["build:rust:workspace"]
|
|
description = "Build all Rust crates"
|
|
run = "cargo build --workspace"
|
|
hide = true
|
|
|
|
["build:release"]
|
|
description = "Alias for build:rust:workspace:release"
|
|
depends = ["build:rust:workspace:release"]
|
|
hide = true
|
|
|
|
["build:rust:workspace:release"]
|
|
description = "Build all Rust crates in release mode"
|
|
run = "cargo build --workspace --release"
|
|
hide = true
|
|
|
|
["build:rust:snap"]
|
|
description = "Build release Rust binaries consumed by the hand-staged snap"
|
|
run = [
|
|
"cargo build --release -p openshell-cli",
|
|
"cargo build --release -p openshell-server --features bundled-z3",
|
|
"cargo build --release -p openshell-sandbox",
|
|
]
|
|
|
|
[check]
|
|
description = "Run fast compile and type checks"
|
|
depends = ["rust:check", "python:typecheck"]
|
|
hide = true
|
|
|
|
[clean]
|
|
description = "Clean build artifacts"
|
|
run = "cargo clean"
|
|
|
|
[fmt]
|
|
description = "Format code"
|
|
depends = ["rust:format", "python:format", "markdown:format"]
|
|
hide = true
|
|
|
|
[lint]
|
|
description = "Run repository lint checks"
|
|
depends = ["license:check", "rust:format:check", "rust:lint", "python:format:check", "python:lint", "helm:lint", "helm:docs:check", "markdown:lint"]
|
|
hide = true
|
|
|
|
[ci]
|
|
description = "Run full checks (lint, compile/type checks, and tests)"
|
|
depends = ["lint", "check", "test"]
|
|
|
|
[all]
|
|
description = "Alias for ci"
|
|
depends = ["ci"]
|
|
hide = true
|
|
|
|
["pre-commit"]
|
|
description = "Alias for ci"
|
|
depends = ["ci"]
|
|
hide = true
|