Main Content

Build Automation

Create and run build tasks using a standard programming interface
Since R2022b

Use the build tool to create and run build tasks, such as identifying code issues, running tests, and packaging a toolbox.

You can create a plan with your tasks and task dependencies in a single build file, and then invoke the build tool to run the plan. 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.TaskResultResult of running a task
matlab.buildtool.BuildResultResult of running a build
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