View Source Nerves.Artifact.BuildRunner behaviour (nerves v1.11.2)

Defines the Nerves build runner behaviour

A build runner is a module that can take package source and produce artifacts.

Summary

Types

@type archive_result() :: {:ok, path :: String.t()} | {:error, reason :: term()}
@type build_result() :: {:ok, build_path :: String.t()} | {:error, reason :: term()}
@type clean_result() :: :ok | {:error, reason :: term()}

Callbacks

Link to this callback

archive(package, toolchain, opts)

View Source
@callback archive(
  package :: Nerves.Package.t(),
  toolchain :: Nerves.Package.t(),
  opts :: term()
) ::
  archive_result()
Link to this callback

build(package, toolchain, opts)

View Source
@callback build(
  package :: Nerves.Package.t(),
  toolchain :: Nerves.Package.t(),
  opts :: term()
) ::
  build_result()
@callback clean(package :: Nerves.Package.t()) :: clean_result()