philss/Rustler Precompiled Action

Precompiles Rustler projects and outputs files in the expected filenames.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
project-nameName of the crate that is being built. This is the same of the Cargo.toml of the crate.yes
project-versionThe version to use in the name of the lib. This mostly matches the Elixir package version.yes
cross-versionThe version desired for cross, the tool that builds for multiple plataforms. It's possible to specify a version, or the string "from-source" to install from the main branch of the project repository. nov0.2.4
use-crossIf the target requires the usage of cross.nofalse
targetThe Rust target we are building to.yes
nif-versionThe NIF version that we are aiming to.no2.16
project-dirA relative path where the project is located. The script is going to enter this path in order to compile the NIF. For example, "native/my_nif". yes./
variantAn alternative version for a given target that is useful when you are building for the same target, but with different dependencies, or hardware capatibilities. This name should be a valid string that can be represented as an Elixir atom. Prefer to use only alphanumerics and underscores. This is going to be appended to the artifact name. no""
cargo-argsA string with additional arguments to be appended to the build command. This is useful to pass flags like `--features`. Notice that the flags `--release` and `--target` are going to be passed down automatically. The flag `--features` may be passed, depending of the NIF version. But you can always pass this flag multiple times. no""
namedescription
file-nameThe tarball compressed file name that was generated.
file-pathThe file path of the tar.gz generated. For compatible reasons, this is equal to the file name. The final file is going to be placed at the root of your project.
file-sha256The SHA256 of the tarball file.