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

Defines the Nerves build runner behaviour

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

Link to this section Summary

Link to this section 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()}

Link to this section Callbacks

Link to this callback

archive(package, toolchain, opts)

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

build(package, toolchain, opts)

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