Main Content

Build Automation

Create and run build tasks, such as identifying code issues, running tests, and packaging toolboxes
Since R2022b

Use the MATLAB® build tool to standardize the build and test process for your project. With the MATLAB build tool, you can:

  • Define, view, and run tasks using a standardized interface.

  • Specify dependencies so that tasks run in the intended order.

  • Avoid redundant work by rebuilding only what has changed.

To get started, see Overview of MATLAB Build Tool.

Functions

buildtoolInvoke build tool
buildplanCreate build plan

Classes

expand all

matlab.buildtool.PlanFundamental interface for defining a build
matlab.buildtool.TaskSingle unit of work in a build
matlab.buildtool.TaskGroupGroup of similar tasks (Since R2024b)
matlab.buildtool.TaskActionAction performed when task runs
matlab.buildtool.TaskContextContext provided when task runs
matlab.buildtool.BuildResultResult of running a build
matlab.buildtool.TaskResultResult of running a task
matlab.buildtool.diagnostics.TaskSkipReasonReason for skipping a task (Since R2026a)
matlab.buildtool.TaskInputsContainer for task inputs (Since R2023b)
matlab.buildtool.TaskOutputsContainer for task outputs (Since R2023b)
matlab.buildtool.io.FileCollectionCollection of files and folders (Since R2023a)
matlab.buildtool.io.FileSingle file or folder (Since R2023b)
matlab.buildtool.io.GlobFile collection that matches pattern (Since R2023b)
matlab.buildtool.tasks.CleanTaskTask for deleting outputs and traces (Since R2023b)
matlab.buildtool.tasks.CodeIssuesTaskTask for identifying code issues (Since R2023b)
matlab.buildtool.tasks.MexTaskTask for building MEX file (Since R2024a)
matlab.buildtool.tasks.PcodeTaskTask for creating P-code files (Since R2024a)
matlab.buildtool.tasks.TestTaskTask for running tests (Since R2023b)

Topics