rlsbl v0.92.0 /rlsbl.pipelines.build
On this page

Standalone build_assets functions for each ecosystem that compile platform-specific artifacts and return sorted output file paths for upload.

#rlsbl.pipelines.build

#rlsbl.pipelines.build

Standalone build_assets functions for each ecosystem that compile platform-specific artifacts and return sorted output file paths for upload.

Each function takes a project directory, version, and dist directory, builds the appropriate artifacts, and returns a sorted list of output file paths. These are self-contained -- they read manifest files directly instead of depending on target classes.

#build_npm_assets

python
def build_npm_assets(dir_path: str, version: str, dist_dir: str) -> list[str]

Pack an npm tarball into dist_dir and return the list of .tgz paths.

#build_pypi_assets

python
def build_pypi_assets(dir_path: str, version: str, dist_dir: str) -> list[str]

Build sdist and wheel into dist_dir and return the list of artifact paths.

#build_go_assets

python
def build_go_assets(dir_path: str, version: str, dist_dir: str) -> list[str]

Build Go binaries into dist_dir.

Uses goreleaser for cross-compilation when available, falling back to go build (host platform only) otherwise.

#_build_go_with_goreleaser

python
def _build_go_with_goreleaser(dir_path: str, dist_dir: str) -> list[str]

Run goreleaser build and collect cross-compiled binaries into dist_dir.

#_read_cargo_name

python
def _read_cargo_name(dir_path: str) -> str

Read the package name from Cargo.toml.

#build_cargo_assets

python
def build_cargo_assets(dir_path: str, version: str, dist_dir: str) -> list[str]

Build Rust binary in release mode and copy to dist_dir.