On this page
Zig release target using a VERSION file as the source of truth with automatic build.zig.zon synchronization and cross-compilation CI setup.
#rlsbl.targets.zig
#rlsbl.targets.zig
Zig release target using a VERSION file as the source of truth with automatic build.zig.zon synchronization and cross-compilation CI setup.
#_zig_archive_fn
def _zig_archive_fn(spec, name)Return (asset_pattern, extract_cmd, binary_name) for a Zig build.
Zig produces raw binaries (not archives), so extract_cmd is always None.
#ZigTarget
Release target for Zig projects (build.zig.zon + VERSION file).
#name
def name(self)#detect
def detect(self, dir_path)Return True if build.zig.zon exists, or build.zig as secondary.
#read_version
def read_version(self, dir_path)Read version, delegating to zig_version helpers.
#write_version
def write_version(self, dir_path, version)Write version, delegating to zig_version helpers.
Returns a list of relative file paths that were modified.
#version_file
def version_file(self)#template_dir
def template_dir(self)#read_name
def read_name(self, dir_path)Extract .name from build.zig.zon, or None.
#_read_zon_field
def _read_zon_field(self, dir_path, pattern)Read a single regex-captured field from build.zig.zon.
#_is_library
def _is_library(self, dir_path)Heuristic: library if build.zig doesn't contain exe( or addExecutable(.
#template_vars
def template_vars(self, dir_path)Extract template variables from build.zig.zon and build.zig.
#template_mappings
def template_mappings(self)#shared_template_mappings
def shared_template_mappings(self)#check_project_exists
def check_project_exists(self, dir_path)#get_project_init_hint
def get_project_init_hint(self)#dev_install_command
def dev_install_command(self, project_dir)