mix zigler_precompiled.build (zigler_precompiled v0.1.4)

Copy Markdown View Source

Builds a single ZiglerPrecompiled NIF artifact for a target triple.

mix zigler_precompiled.build lib/my_app/native.ex --target aarch64-linux-gnu

Dependencies are compiled for the host before the target-specific Zigler precompile mode is enabled. This keeps dependency NIFs loadable on the build runner while only the requested NIF module is cross-compiled.

Options

  • --target - required Zig target triple, such as aarch64-linux-gnu
  • --out - output directory for the .tar.gz artifact, defaults to artifacts
  • --basename - artifact basename, defaults to the compiled module name
  • --version - artifact version, defaults to the current Mix project version